Lines Matching defs:TestProperties
75 struct TestProperties {
85 int TestProperties::static_value = 1;
87 struct TestPropertiesOverride : TestProperties {
284 py::class_<TestProperties>(m, "TestProperties")
286 .def_readonly("def_readonly", &TestProperties::value)
287 .def_readwrite("def_readwrite", &TestProperties::value)
289 [](TestProperties& s,int v) { s.value = v; } )
290 .def_property("def_property_writeonly", nullptr, &TestProperties::set)
291 .def_property_readonly("def_property_readonly", &TestProperties::get)
292 .def_property("def_property", &TestProperties::get, &TestProperties::set)
294 .def_readonly_static("def_readonly_static", &TestProperties::static_value)
295 .def_readwrite_static("def_readwrite_static", &TestProperties::static_value)
297 [](py::object, int v) { TestProperties::static_value = v; })
299 [](py::object) { return TestProperties::static_get(); })
301 [](py::object, int v) { return TestProperties::static_set(v); })
303 [](py::object) { return TestProperties::static_get(); },
304 [](py::object, int v) { TestProperties::static_set(v); })
309 py::class_<TestPropertiesOverride, TestProperties>(m, "TestPropertiesOverride")