Lines Matching defs:TestFactory3

43 class TestFactory3 {
46 TestFactory3() : value("(empty3)") { print_default_created(this); }
47 TestFactory3(int v) : value(std::to_string(v)) { print_created(this, value); }
49 TestFactory3(std::string v) : value(std::move(v)) { print_created(this, value); }
50 TestFactory3(TestFactory3 &&m) { value = std::move(m.value); print_move_created(this); }
51 TestFactory3 &operator=(TestFactory3 &&m) { value = std::move(m.value); print_move_assigned(this); return *this; }
53 virtual ~TestFactory3() { print_destroyed(this); }
56 class TestFactory4 : public TestFactory3 {
58 TestFactory4() : TestFactory3() { print_default_created(this); }
59 TestFactory4(int v) : TestFactory3(v) { print_created(this, v); }
63 class TestFactory5 : public TestFactory3 {
65 TestFactory5(int i) : TestFactory3(i) { print_created(this, i); }
136 static TestFactory3 *construct3() { return new TestFactory3(); }
138 static std::shared_ptr<TestFactory3> construct3(int a) { return std::shared_ptr<TestFactory3>(new TestFactory3(a)); }
183 py::class_<TestFactory3, std::shared_ptr<TestFactory3>>(m, "TestFactory3")
186 .def("__init__", [](TestFactory3 &self, std::string v) { new (&self) TestFactory3(v); }) // placement-new ctor
196 .def(py::init([](null_ptr_tag) { return (TestFactory3 *) nullptr; }))
198 .def_readwrite("value", &TestFactory3::value)
202 py::class_<TestFactory4, TestFactory3, std::shared_ptr<TestFactory4>>(m, "TestFactory4")
207 py::class_<TestFactory5, TestFactory3, std::shared_ptr<TestFactory5>>(m, "TestFactory5");