Lines Matching refs:Base
150 struct Base {
153 virtual ~Base() = default;
156 struct DispatchIssue : Base {
158 PYBIND11_OVERLOAD_PURE(std::string, Base, dispatch, /* no arguments */);
271 py::class_<Base, DispatchIssue>(m, "DispatchIssue")
273 .def("dispatch", &Base::dispatch);
275 m.def("dispatch_issue_go", [](const Base * b) { return b->dispatch(); });
366 // Base classes for templated inheritance trampolines. Identical to the repeat-everything version:
416 template <class Base = A_Tpl>
417 class PyA_Tpl : public Base {
419 using Base::Base; // Inherit constructors
420 int unlucky_number() override { PYBIND11_OVERLOAD_PURE(int, Base, unlucky_number, ); }
421 std::string say_something(unsigned times) override { PYBIND11_OVERLOAD(std::string, Base, say_something, times); }
423 template <class Base = B_Tpl>
424 class PyB_Tpl : public PyA_Tpl<Base> {
426 using PyA_Tpl<Base>::PyA_Tpl; // Inherit constructors (via PyA_Tpl's inherited constructors)
427 int unlucky_number() override { PYBIND11_OVERLOAD(int, Base, unlucky_number, ); }
428 double lucky_number() override { PYBIND11_OVERLOAD(double, Base, lucky_number, ); }
433 template <class Base = C_Tpl> class PyC_Tpl : public PyB_Tpl<Base> {
435 using PyB_Tpl<Base>::PyB_Tpl;
437 template <class Base = D_Tpl> class PyD_Tpl : public PyC_Tpl<Base> {
439 using PyC_Tpl<Base>::PyC_Tpl;