Lines Matching refs:def
47 .def("alive", &ConstructorStats::alive)
48 .def("values", &ConstructorStats::values)
77 .def(py::init<>())
78 .def(py::init<int>())
79 .def("get_value", &UserType::value, "Get value using a method")
80 .def("set_value", &UserType::set, "Set value using a method")
82 .def("__repr__", [](const UserType& u) { return "UserType({})"_s.format(u.value()); });
85 .def(py::init<>())
86 .def(py::init<int>())
87 .def("__repr__", [](const IncType& u) { return "IncType({})"_s.format(u.value()); });