Lines Matching refs:VirtClass
14 class VirtClass { class
16 virtual ~VirtClass() = default;
17 VirtClass() = default;
18 VirtClass(const VirtClass&) = delete;
23 class PyVirtClass : public VirtClass {
25 PYBIND11_OVERRIDE(void, VirtClass, virtual_func,); in virtual_func()
28 PYBIND11_OVERRIDE_PURE(void, VirtClass, pure_virtual_func,); in pure_virtual_func()
33 py::class_<VirtClass, PyVirtClass>(m, "VirtClass") in TEST_SUBMODULE()
35 .def("virtual_func", &VirtClass::virtual_func) in TEST_SUBMODULE()
36 .def("pure_virtual_func", &VirtClass::pure_virtual_func); in TEST_SUBMODULE()
43 [](VirtClass &virt) { virt.virtual_func(); }); in TEST_SUBMODULE()
45 [](VirtClass &virt) { virt.pure_virtual_func(); }); in TEST_SUBMODULE()