Searched refs:TestPropRVP (Results 1 – 2 of 2) sorted by relevance
96 struct TestPropRVP { struct108 UserType TestPropRVP::sv1(1); argument109 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()[all …]
250 obj = m.TestPropRVP()252 obj = m.TestPropRVP275 instance = m.TestPropRVP()279 os = m.TestPropRVP.static_rvalue