Searched refs:def_property (Results 1 - 6 of 6) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_docstring_options.cpp58 .def_property("value_prop", &DocstringTestFoo::getValue, &DocstringTestFoo::setValue, "This is a property docstring")
H A Dtest_methods_and_attributes.cpp288 .def_property("def_writeonly", nullptr,
290 .def_property("def_property_writeonly", nullptr, &TestProperties::set)
292 .def_property("def_property", &TestProperties::get, &TestProperties::set)
293 .def_property("def_property_impossible", nullptr, nullptr)
326 .def_property("rw_ref", &TestPropRVP::get1, &TestPropRVP::set1)
327 .def_property("rw_copy", &TestPropRVP::get2, &TestPropRVP::set2, rvp_copy)
328 .def_property("rw_func", py::cpp_function(&TestPropRVP::get2, rvp_copy), &TestPropRVP::set2)
440 .def_property("rw_value_prop", &RegisteredDerived::get_int, &RegisteredDerived::set_int)
H A Dpybind11_tests.cpp81 .def_property("value", &UserType::value, &UserType::set, "Get/set value using a property")
H A Dtest_methods_and_attributes.py98 instance.def_property = 3
99 assert instance.def_property == 3
H A Dtest_buffers.cpp160 .def_property("value", &ConstBuffer::get_value, &ConstBuffer::set_value)
/gem5/ext/pybind11/include/pybind11/
H A Dpybind11.h1190 def_property(name, fget, fset, return_value_policy::reference_internal, extra...);
1227 return def_property(name, fget, nullptr, extra...);
1244 class_ &def_property(const char *name, const Getter &fget, const Setter &fset, const Extra& ...extra) { function in class:cpp_function
1245 return def_property(name, fget, cpp_function(method_adaptor<type>(fset)), extra...);
1248 class_ &def_property(const char *name, const Getter &fget, const cpp_function &fset, const Extra& ...extra) { function in class:cpp_function
1249 return def_property(name, cpp_function(method_adaptor<type>(fget)), fset,
1255 class_ &def_property(const char *name, const cpp_function &fget, const cpp_function &fset, const Extra& ...extra) { function in class:cpp_function

Completed in 25 milliseconds