/gem5/ext/pybind11/include/pybind11/ |
H A D | attr.h | 80 m.def("foo", foo, py::call_guard<T>()); 86 m.def("foo", [](args...) { 88 return foo(args...); // forwarded arguments
|
H A D | pytypes.h | 859 void foo(py::iterator it) {
|
H A D | embed.h | 41 m.def("foo", []() {
|
/gem5/ext/pybind11/docs/ |
H A D | conf.py | 200 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. 203 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. 306 # How to display URL addresses: 'footnote', 'no', or 'inline'. 307 #texinfo_show_urls = 'footnote'
|
H A D | faq.rst | 84 int foo(int &i) { i++; return 123; } 90 m.def("foo", [](int i) { int rv = foo(i); return std::make_tuple(rv, i); });
|
H A D | changelog.rst | 517 * Allow aliasing pybind11 methods: ``cls.attr("foo") = cls.attr("bar")``. 536 int foo() { return 42; } 543 .def("foo", &Derived::foo); // function is actually from `Base` 967 notation such as ``foo(a1, a2, *args, "ka"_a=1, "kb"_a=2, **kwargs)``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
|
H A D | classes.rst | 417 int foo(int x, float y); 418 int foo(int x, float y) const; 422 .def("foo_mutable", py::overload_cast<int, float>(&Widget::foo)) 423 .def("foo_const", py::overload_cast<int, float>(&Widget::foo, py::const_));
|
/gem5/ext/pybind11/tests/ |
H A D | test_methods_and_attributes.py | 263 assert not hasattr(instance, "foo") 264 assert "foo" not in dir(instance) 267 instance.foo = 42 268 assert hasattr(instance, "foo") 269 assert instance.foo == 42 270 assert "foo" in dir(instance) 273 assert "foo" in instance.__dict__ 275 assert not hasattr(instance, "foo") 293 derived.foobar = 100 294 assert derived.foobar [all...] |
H A D | test_multiple_inheritance.cpp | 52 int foo() { return i; } function in struct:Base1 57 .def("foo", &Base1::foo); 104 int foo() { return i; } function in struct:Base1a 109 .def("foo", &Base1a::foo);
|
H A D | test_kwargs_and_defaults.py | 15 assert doc(m.KWClass.foo0) == \ 16 "foo0(self: m.kwargs_and_defaults.KWClass, arg0: int, arg1: float) -> None" 17 assert doc(m.KWClass.foo1) == \ 18 "foo1(self: m.kwargs_and_defaults.KWClass, x: int, y: float) -> None"
|
H A D | test_kwargs_and_defaults.cpp | 98 struct KWClass { void foo(int, float) {} }; function in struct:KWClass 100 .def("foo0", &KWClass::foo) 101 .def("foo1", &KWClass::foo, "x"_a, "y"_a);
|
H A D | test_pytypes.py | 44 assert m.set_contains({"foo"}, "foo") 64 assert m.dict_contains({"foo": None}, "foo") 94 assert m.bytes_from_string().decode() == "foo"
|
H A D | test_stl.py | 112 pytest.raises(TypeError, m.double_or_zero, 'foo') 116 pytest.raises(TypeError, m.half_or_none, 'foo') 135 pytest.raises(TypeError, m.double_or_zero_exp, 'foo') 139 pytest.raises(TypeError, m.half_or_none_exp, 'foo')
|
H A D | test_class.cpp | 258 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 D | test_class.py | 209 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 D | test_exceptions.cpp | 120 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 D | test_enum.py | 18 foo = m.UnscopedEnum.EOne.name 19 foo = "bar" 29 foo = m.UnscopedEnum.__members__ 30 foo["bar"] = "baz"
|
H A D | test_exceptions.py | 20 assert msg(excinfo.value) == "foo"
|
H A D | test_pytypes.cpp | 80 m.def("bytes_from_string", []() { return py::bytes(std::string("foo")); });
|
/gem5/ext/pybind11/docs/advanced/ |
H A D | classes.rst | 618 py::class_<Foo>(m, "Foo") 619 .def_property_readonly_static("foo", [](py::object /* self */) { return Foo(); }); 979 int foo() const { return 42; } 983 .def("foo", &A::foo); // error: 'foo' is a protected member of 'A' 995 int foo() const { return 42; } 1000 using A::foo; // inherite [all...] |
H A D | functions.rst | 219 m.def("foo", foo, py::call_guard<T>()); 225 m.def("foo", [](args...) { 227 return foo(args...); // forwarded arguments 271 >>> print_dict({'foo': 123, 'bar': 'hello'}) 272 key=foo, value=123
|
H A D | misc.rst | 272 m.def("foo", &foo, R"mydelimiter( 273 The foo function 280 m.def("foo", &foo, R"mydelimiter(The foo function
|
/gem5/ext/pybind11/docs/advanced/cast/ |
H A D | strings.rst | 34 cout << "My favorite food is\n"; 46 My favorite food is
|
/gem5/ext/pybind11/include/pybind11/detail/ |
H A D | common.h | 278 m.def("foo", []() {
|
/gem5/ |
H A D | SConstruct | 71 # % cd <path-to-src>/gem5 ; scons /local/foo/build/ALPHA/gem5.debug 72 # % cd /local/foo/build/ALPHA; scons -C <path-to-src>/gem5 gem5.debug 234 # example, for target 'foo/bar/build/ALPHA_SE/arch/alpha/blah.do' we
|