Lines Matching refs:MyObject1
98 class MyObject1 : public Object { in TEST_SUBMODULE() class
100 MyObject1(int value) : value(value) { print_created(this, toString()); } in TEST_SUBMODULE() function in TEST_SUBMODULE::MyObject1
103 ~MyObject1() override { print_destroyed(this); } in TEST_SUBMODULE()
107 py::class_<MyObject1, ref<MyObject1>>(m, "MyObject1", obj) in TEST_SUBMODULE()
109 py::implicitly_convertible<py::int_, MyObject1>(); in TEST_SUBMODULE()
111 m.def("make_object_1", []() -> Object * { return new MyObject1(1); }); in TEST_SUBMODULE()
112 m.def("make_object_2", []() -> ref<Object> { return new MyObject1(2); }); in TEST_SUBMODULE()
113 m.def("make_myobject1_1", []() -> MyObject1 * { return new MyObject1(4); }); in TEST_SUBMODULE()
114 m.def("make_myobject1_2", []() -> ref<MyObject1> { return new MyObject1(5); }); in TEST_SUBMODULE()
119 m.def("print_myobject1_1", [](const MyObject1 *obj) { py::print(obj->toString()); }); in TEST_SUBMODULE()
120 m.def("print_myobject1_2", [](ref<MyObject1> obj) { py::print(obj->toString()); }); in TEST_SUBMODULE()
121 m.def("print_myobject1_3", [](const ref<MyObject1> &obj) { py::print(obj->toString()); }); in TEST_SUBMODULE()
122 m.def("print_myobject1_4", [](const ref<MyObject1> *obj) { py::print((*obj)->toString()); }); in TEST_SUBMODULE()
168 ref<MyObject1> o = new MyObject1(0); in TEST_SUBMODULE()