Lines Matching refs:pet
269 py::class_<Pet> pet(m, "Pet");
270 pet.def(py::init<const std::string &>())
274 py::class_<Dog>(m, "Dog", pet /* <- specify Python parent type */)
376 .def("set", static_cast<void (Pet::*)(int)>(&Pet::set), "Set the pet's age")
377 … .def("set", static_cast<void (Pet::*)(const std::string &)>(&Pet::set), "Set the pet's name");
394 | Set the pet's age
398 | Set the pet's name
406 .def("set", py::overload_cast<int>(&Pet::set), "Set the pet's age")
407 .def("set", py::overload_cast<const std::string &>(&Pet::set), "Set the pet's name");
434 .def("set", overload_cast_<int>()(&Pet::set), "Set the pet's age")
435 .def("set", overload_cast_<const std::string &>()(&Pet::set), "Set the pet's name");
470 py::class_<Pet> pet(m, "Pet");
472 pet.def(py::init<const std::string &, Pet::Kind>())
476 py::enum_<Pet::Kind>(pet, "Kind")
482 ``pet`` :class:`class_` instance must be supplied to the :class:`enum_`.
529 py::enum_<Pet::Kind>(pet, "Kind", py::arithmetic())