Lines Matching refs:ExampleVirt
16 class ExampleVirt { class
18 ExampleVirt(int state) : state(state) { print_created(this, state); } in ExampleVirt() function in ExampleVirt
19 ExampleVirt(const ExampleVirt &e) : state(e.state) { print_copy_created(this); } in ExampleVirt() function in ExampleVirt
20 ExampleVirt(ExampleVirt &&e) : state(e.state) { print_move_created(this); e.state = 0; } in ExampleVirt() function in ExampleVirt
21 virtual ~ExampleVirt() { print_destroyed(this); } in ~ExampleVirt()
44 class PyExampleVirt : public ExampleVirt {
46 using ExampleVirt::ExampleVirt; /* Inherit constructors */
52 ExampleVirt, /* Parent class */ in run()
61 ExampleVirt, /* Parent class */ in run_bool()
71 ExampleVirt, /* Parent class */ in pure_virtual()
83 ExampleVirt, /* Parent class */ in get_string1()
92 ExampleVirt, /* Parent class */ in get_string2()
194 py::class_<ExampleVirt, PyExampleVirt>(m, "ExampleVirt") in TEST_SUBMODULE()
197 .def("run", &ExampleVirt::run) in TEST_SUBMODULE()
198 .def("run_bool", &ExampleVirt::run_bool) in TEST_SUBMODULE()
199 .def("pure_virtual", &ExampleVirt::pure_virtual); in TEST_SUBMODULE()
217 m.def("runExampleVirt", [](ExampleVirt *ex, int value) { return ex->run(value); }); in TEST_SUBMODULE()
218 m.def("runExampleVirtBool", [](ExampleVirt* ex) { return ex->run_bool(); }); in TEST_SUBMODULE()
219 m.def("runExampleVirtVirtual", [](ExampleVirt *ex) { ex->pure_virtual(); }); in TEST_SUBMODULE()
221 m.def("cstats_debug", &ConstructorStats::get<ExampleVirt>); in TEST_SUBMODULE()