Lines Matching refs:TestPropRVP
96 struct TestPropRVP { struct
108 UserType TestPropRVP::sv1(1); argument
109 UserType TestPropRVP::sv2(1);
257 auto static_get1 = [](py::object) -> const UserType & { return TestPropRVP::sv1; }; in TEST_SUBMODULE()
258 auto static_get2 = [](py::object) -> const UserType & { return TestPropRVP::sv2; }; in TEST_SUBMODULE()
259 auto static_set1 = [](py::object, int v) { TestPropRVP::sv1.set(v); }; in TEST_SUBMODULE()
260 auto static_set2 = [](py::object, int v) { TestPropRVP::sv2.set(v); }; in TEST_SUBMODULE()
264 py::class_<TestPropRVP>(m, "TestPropRVP") in TEST_SUBMODULE()
266 .def_property_readonly("ro_ref", &TestPropRVP::get1) in TEST_SUBMODULE()
267 .def_property_readonly("ro_copy", &TestPropRVP::get2, rvp_copy) in TEST_SUBMODULE()
268 .def_property_readonly("ro_func", py::cpp_function(&TestPropRVP::get2, rvp_copy)) in TEST_SUBMODULE()
269 .def_property("rw_ref", &TestPropRVP::get1, &TestPropRVP::set1) in TEST_SUBMODULE()
270 .def_property("rw_copy", &TestPropRVP::get2, &TestPropRVP::set2, rvp_copy) in TEST_SUBMODULE()
271 .def_property("rw_func", py::cpp_function(&TestPropRVP::get2, rvp_copy), &TestPropRVP::set2) in TEST_SUBMODULE()
279 .def_property_readonly("rvalue", &TestPropRVP::get_rvalue) in TEST_SUBMODULE()