Lines Matching refs:TestPropRVP
93 struct TestPropRVP {
105 UserType TestPropRVP::sv1(1);
106 UserType TestPropRVP::sv2(1);
314 auto static_get1 = [](py::object) -> const UserType & { return TestPropRVP::sv1; };
315 auto static_get2 = [](py::object) -> const UserType & { return TestPropRVP::sv2; };
316 auto static_set1 = [](py::object, int v) { TestPropRVP::sv1.set(v); };
317 auto static_set2 = [](py::object, int v) { TestPropRVP::sv2.set(v); };
321 py::class_<TestPropRVP>(m, "TestPropRVP")
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))
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)
336 .def_property_readonly("rvalue", &TestPropRVP::get_rvalue)