Lines Matching refs:PyTF6
81 class PyTF6 : public TestFactory6 {
83 // Special constructor that allows the factory to construct a PyTF6 from a TestFactory6 only
85 PyTF6(TestFactory6 &&base) : TestFactory6(std::move(base)) { alias = true; print_created(this, "move", value); }
86 PyTF6(int i) : TestFactory6(i) { alias = true; print_created(this, i); }
87 PyTF6(PyTF6 &&f) : TestFactory6(std::move(f)) { print_move_created(this); }
88 PyTF6(const PyTF6 &f) : TestFactory6(f) { print_copy_created(this); }
89 PyTF6(std::string s) : TestFactory6((int) s.size()) { alias = true; print_created(this, s); }
90 virtual ~PyTF6() { print_destroyed(this); }
211 py::class_<TestFactory6, PyTF6>(m, "TestFactory6")
213 .def(py::init([](alias_tag, int i) { return PyTF6(i); }))
214 .def(py::init([](alias_tag, std::string s) { return PyTF6(s); }))
215 .def(py::init([](alias_tag, pointer_tag, int i) { return new PyTF6(i); }))
217 .def(py::init([](base_tag, alias_tag, pointer_tag, int i) { return (TestFactory6 *) new PyTF6(i); }))
223 .def_static("get_alias_cstats", &ConstructorStats::get<PyTF6>, py::return_value_policy::reference)