Home
last modified time | relevance | path

Searched refs:TestPropRVP (Results 1 – 2 of 2) sorted by relevance

/external/python/pybind11/tests/
Dtest_methods_and_attributes.cpp96 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()
[all …]
Dtest_methods_and_attributes.py250 obj = m.TestPropRVP()
252 obj = m.TestPropRVP
275 instance = m.TestPropRVP()
279 os = m.TestPropRVP.static_rvalue