Lines Matching refs:VirtClass
14 class VirtClass {
16 virtual ~VirtClass() {}
21 class PyVirtClass : public VirtClass {
23 PYBIND11_OVERLOAD(void, VirtClass, virtual_func,);
26 PYBIND11_OVERLOAD_PURE(void, VirtClass, pure_virtual_func,);
31 py::class_<VirtClass, PyVirtClass>(m, "VirtClass")
33 .def("virtual_func", &VirtClass::virtual_func)
34 .def("pure_virtual_func", &VirtClass::pure_virtual_func);
41 [](VirtClass &virt) { virt.virtual_func(); });
43 [](VirtClass &virt) { virt.pure_virtual_func(); });