Lines Matching defs:RegisteredDerived
204 class RegisteredDerived : public UnregisteredBase {
431 py::class_<RegisteredDerived>(m, "RegisteredDerived")
433 .def("do_nothing", &RegisteredDerived::do_nothing)
434 .def("increase_value", &RegisteredDerived::increase_value)
435 .def_readwrite("rw_value", &RegisteredDerived::rw_value)
436 .def_readonly("ro_value", &RegisteredDerived::ro_value)
440 .def_property("rw_value_prop", &RegisteredDerived::get_int, &RegisteredDerived::set_int)
441 .def_property_readonly("ro_value_prop", &RegisteredDerived::get_double)
443 .def("sum", &RegisteredDerived::sum)
446 using Adapted = decltype(py::method_adaptor<RegisteredDerived>(&RegisteredDerived::do_nothing));
447 static_assert(std::is_same<Adapted, void (RegisteredDerived::*)() const>::value, "");