Searched full:foo* (Results 226 - 234 of 234) sorted by relevance

12345678910

/gem5/ext/pybind11/docs/advanced/cast/
H A Dstrings.rst34 cout << "My favorite food is\n";
46 My favorite food is
/gem5/ext/pybind11/include/pybind11/detail/
H A Dcommon.h278 m.def("foo", []() {
/gem5/ext/pybind11/include/pybind11/
H A Dembed.h41 m.def("foo", []() {
/gem5/ext/pybind11/tests/
H A Dtest_class.cpp258 int foo() const { return value; } function in class:ProtectedA
266 using ProtectedA::foo;
272 .def("foo", &PublicistA::foo);
274 .def("foo", static_cast<int (ProtectedA::*)() const>(&PublicistA::foo));
282 virtual int foo() const { return value; } function in class:ProtectedB
290 int foo() const override { PYBIND11_OVERLOAD(int, ProtectedB, foo, ); }
295 using ProtectedB::foo;
[all...]
H A Dtest_class.py209 assert a.foo() == 42
212 assert b.foo() == 42
218 def foo(self): member in class:test_bind_protected_functions.C
222 assert c.foo() == 0
H A Dtest_exceptions.cpp120 py::dict foo;
123 py::object o = foo["bar"];
132 py::dict foo;
135 py::object o = foo["bar"];
157 PyErr_SetString(PyExc_ValueError, "foo");
161 if ((err && e.what() != std::string("ValueError: foo")) ||
170 PyErr_SetString(PyExc_ValueError, "foo");
177 PyErr_SetString(PyExc_ValueError, "foo");
H A Dtest_enum.py18 foo = m.UnscopedEnum.EOne.name
19 foo = "bar"
29 foo = m.UnscopedEnum.__members__
30 foo["bar"] = "baz"
H A Dtest_exceptions.py20 assert msg(excinfo.value) == "foo"
H A Dtest_pytypes.cpp80 m.def("bytes_from_string", []() { return py::bytes(std::string("foo")); });

Completed in 18 milliseconds

12345678910