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

/gem5/ext/pybind11/tests/
H A Dtest_methods_and_attributes.cpp318 auto rvp_copy = py::return_value_policy::copy; local
324 .def_property_readonly("ro_copy", &TestPropRVP::get2, rvp_copy)
325 .def_property_readonly("ro_func", py::cpp_function(&TestPropRVP::get2, rvp_copy))
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)
330 .def_property_readonly_static("static_ro_copy", static_get2, rvp_copy)
331 .def_property_readonly_static("static_ro_func", py::cpp_function(static_get2, rvp_copy))
333 .def_property_static("static_rw_copy", static_get2, static_set2, rvp_copy)
334 .def_property_static("static_rw_func", py::cpp_function(static_get2, rvp_copy), static_set2)

Completed in 10 milliseconds