Searched refs:def_property_readonly (Results 1 - 7 of 7) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_smart_ptr.cpp243 .def_property_readonly("copy", [](const SharedPtrRef &s) { return s.value; },
246 .def_property_readonly("holder_copy", [](const SharedPtrRef &s) { return s.shared; },
268 .def_property_readonly("ref", [](const SharedFromThisRef &s) -> const B & { return *s.shared; })
269 .def_property_readonly("copy", [](const SharedFromThisRef &s) { return s.value; },
272 .def_property_readonly("holder_copy", [](const SharedFromThisRef &s) { return s.shared; },
H A Dtest_methods_and_attributes.cpp291 .def_property_readonly("def_property_readonly", &TestProperties::get)
323 .def_property_readonly("ro_ref", &TestPropRVP::get1)
324 .def_property_readonly("ro_copy", &TestPropRVP::get2, rvp_copy)
325 .def_property_readonly("ro_func", py::cpp_function(&TestPropRVP::get2, rvp_copy))
336 .def_property_readonly("rvalue", &TestPropRVP::get_rvalue)
441 .def_property_readonly("ro_value_prop", &RegisteredDerived::get_double)
H A Dtest_methods_and_attributes.py94 assert instance.def_property_readonly == 2
96 instance.def_property_readonly = 3
106 assert instance.def_property_readonly == 4
H A Dtest_stl.cpp140 .def_property_readonly("move_list", &MoveOutContainer::move_list);
/gem5/src/python/pybind11/
H A Dstats.cc114 .def_property_readonly("flags", [](const Stats::Info &info) {
/gem5/ext/pybind11/tests/test_embed/
H A Dtest_interpreter.cpp39 .def_property_readonly("the_message", &Widget::the_message);
/gem5/ext/pybind11/include/pybind11/
H A Dpybind11.h1198 def_property_readonly(name, fget, return_value_policy::reference_internal, extra...);
1219 class_ &def_property_readonly(const char *name, const Getter &fget, const Extra& ...extra) { function in class:cpp_function
1220 return def_property_readonly(name, cpp_function(method_adaptor<type>(fget)),
1226 class_ &def_property_readonly(const char *name, const cpp_function &fget, const Extra& ...extra) { function in class:cpp_function
1553 using Base::def_property_readonly;

Completed in 29 milliseconds