Lines Matching refs:TestFactory2
31 class TestFactory2 {
33 TestFactory2() : value("(empty2)") { print_default_created(this); }
34 TestFactory2(int v) : value(std::to_string(v)) { print_created(this, value); }
35 TestFactory2(std::string v) : value(std::move(v)) { print_created(this, value); }
37 TestFactory2(TestFactory2 &&m) { value = std::move(m.value); print_move_created(this); }
38 TestFactory2 &operator=(TestFactory2 &&m) { value = std::move(m.value); print_move_assigned(this); return *this; }
40 ~TestFactory2() { print_destroyed(this); }
128 static TestFactory2 *construct2() { return new TestFactory2(); }
130 static std::unique_ptr<TestFactory2> construct2(int a) { return std::unique_ptr<TestFactory2>(new TestFactory2(a)); }
132 static TestFactory2 construct2(std::string a) { return TestFactory2(a); }
171 py::class_<TestFactory2>(m, "TestFactory2")
175 .def_readwrite("value", &TestFactory2::value)