Home
last modified time | relevance | path

Searched refs:ProtectedB (Results 1 – 2 of 2) sorted by relevance

/external/python/pybind11/tests/
Dtest_class.cpp313 class ProtectedB { in TEST_SUBMODULE() class
315 virtual ~ProtectedB() = default; in TEST_SUBMODULE()
316 ProtectedB() = default; in TEST_SUBMODULE()
317 ProtectedB(const ProtectedB &) = delete; in TEST_SUBMODULE()
326 class TrampolineB : public ProtectedB { in TEST_SUBMODULE()
328 int foo() const override { PYBIND11_OVERRIDE(int, ProtectedB, foo, ); } in TEST_SUBMODULE()
331 class PublicistB : public ProtectedB { in TEST_SUBMODULE()
337 using ProtectedB::foo; in TEST_SUBMODULE()
340 py::class_<ProtectedB, TrampolineB>(m, "ProtectedB") in TEST_SUBMODULE()
345 .def("foo", static_cast<int (ProtectedB::*)() const>(&PublicistB::foo)); in TEST_SUBMODULE()
Dtest_class.py309 b = m.ProtectedB()
312 class C(m.ProtectedB):
314 m.ProtectedB.__init__(self)