Lines Matching refs:TestFactory1
17 class TestFactory1 {
19 TestFactory1() : value("(empty)") { print_default_created(this); }
20 TestFactory1(int v) : value(std::to_string(v)) { print_created(this, value); }
21 TestFactory1(std::string v) : value(std::move(v)) { print_created(this, value); }
22 TestFactory1(TestFactory1 &&) = delete;
23 TestFactory1(const TestFactory1 &) = delete;
24 TestFactory1 &operator=(TestFactory1 &&) = delete;
25 TestFactory1 &operator=(const TestFactory1 &) = delete;
28 ~TestFactory1() { print_destroyed(this); }
120 static TestFactory1 *construct1() { return new TestFactory1(); }
122 static std::unique_ptr<TestFactory1> construct1(int a) { return std::unique_ptr<TestFactory1>(new TestFactory1(a)); }
124 static TestFactory1 *construct1_string(std::string a) { return new TestFactory1(a); }
164 py::class_<TestFactory1>(m, "TestFactory1")
169 .def_readwrite("value", &TestFactory1::value)