Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_smart_ptr.cpp209 class MyObject4a; in TEST_SUBMODULE()
210 static std::unordered_set<MyObject4a *> myobject4a_instances; in TEST_SUBMODULE()
211 class MyObject4a { in TEST_SUBMODULE() class
213 MyObject4a(int i) { in TEST_SUBMODULE() function in TEST_SUBMODULE::MyObject4a
227 virtual ~MyObject4a() { in TEST_SUBMODULE()
232 py::class_<MyObject4a, std::unique_ptr<MyObject4a, py::nodelete>>(m, "MyObject4a") in TEST_SUBMODULE()
234 .def_readwrite("value", &MyObject4a::value) in TEST_SUBMODULE()
235 .def_static("cleanup_all_instances", &MyObject4a::cleanupAllInstances); in TEST_SUBMODULE()
238 class MyObject4b : public MyObject4a { in TEST_SUBMODULE()
240 MyObject4b(int i) : MyObject4a(i) { print_created(this); } in TEST_SUBMODULE()
[all …]
Dtest_smart_ptr.py134 o = m.MyObject4a(23)
136 cstats = ConstructorStats.get(m.MyObject4a)
140 m.MyObject4a.cleanup_all_instances()
145 m.MyObject4a(0)
148 cstats4a = ConstructorStats.get(m.MyObject4a)
155 m.MyObject4a.cleanup_all_instances()