Lines Matching refs:OverrideTest
289 class OverrideTest { in TEST_SUBMODULE() class
294 explicit OverrideTest(const std::string &v) : v{v} {} in TEST_SUBMODULE() function in TEST_SUBMODULE::OverrideTest
295 OverrideTest() = default; in TEST_SUBMODULE()
296 OverrideTest(const OverrideTest&) = delete; in TEST_SUBMODULE()
301 virtual ~OverrideTest() = default; in TEST_SUBMODULE()
304 class PyOverrideTest : public OverrideTest { in TEST_SUBMODULE()
306 using OverrideTest::OverrideTest; in TEST_SUBMODULE()
307 … std::string str_value() override { PYBIND11_OVERRIDE(std::string, OverrideTest, str_value); } in TEST_SUBMODULE()
314 std::string str_ref_helper() { PYBIND11_OVERRIDE(std::string, OverrideTest, str_ref); } in TEST_SUBMODULE()
318 A A_value() override { PYBIND11_OVERRIDE(A, OverrideTest, A_value); } in TEST_SUBMODULE()
319 A &A_ref() override { PYBIND11_OVERRIDE(A &, OverrideTest, A_ref); } in TEST_SUBMODULE()
322 py::class_<OverrideTest::A>(m, "OverrideTest_A") in TEST_SUBMODULE()
323 .def_readwrite("value", &OverrideTest::A::value); in TEST_SUBMODULE()
324 py::class_<OverrideTest, PyOverrideTest>(m, "OverrideTest") in TEST_SUBMODULE()
326 .def("str_value", &OverrideTest::str_value) in TEST_SUBMODULE()
328 .def("A_value", &OverrideTest::A_value) in TEST_SUBMODULE()
329 .def("A_ref", &OverrideTest::A_ref); in TEST_SUBMODULE()