Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_class.py101 assert m.NestBase.__qualname__ == "NestBase"
102 assert m.NestBase.Nested.__qualname__ == "NestBase.Nested"
105 doc(m.NestBase.__init__)
111 doc(m.NestBase.g)
117 doc(m.NestBase.Nested.__init__)
123 doc(m.NestBase.Nested.fn)
129 doc(m.NestBase.Nested.fa)
134 assert m.NestBase.__module__ == "pybind11_tests.class_"
135 assert m.NestBase.Nested.__module__ == "pybind11_tests.class_"
Dtest_class.cpp379 struct NestBase {}; in TEST_SUBMODULE() struct
381 py::class_<NestBase> base(m, "NestBase"); in TEST_SUBMODULE()
385 .def("fn", [](Nested &, int, NestBase &, Nested &) {}) in TEST_SUBMODULE() argument
386 .def("fa", [](Nested &, int, NestBase &, Nested &) {}, in TEST_SUBMODULE() argument
388 base.def("g", [](NestBase &, Nested &) {}); in TEST_SUBMODULE() argument
389 base.def("h", []() { return NestBase(); }); in TEST_SUBMODULE()