Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_eigen.cpp174 class ReturnTester { in TEST_SUBMODULE() class
177 ReturnTester() { print_created(this); } in TEST_SUBMODULE() function in TEST_SUBMODULE::ReturnTester
178 ~ReturnTester() { print_destroyed(this); } in TEST_SUBMODULE()
195 py::class_<ReturnTester>(m, "ReturnTester") in TEST_SUBMODULE()
197 .def_static("create", &ReturnTester::create) in TEST_SUBMODULE()
198 .def_static("create_const", &ReturnTester::createConst) in TEST_SUBMODULE()
199 .def("get", &ReturnTester::get, rvp::reference_internal) in TEST_SUBMODULE()
200 .def("get_ptr", &ReturnTester::getPtr, rvp::reference_internal) in TEST_SUBMODULE()
201 .def("view", &ReturnTester::view, rvp::reference_internal) in TEST_SUBMODULE()
202 .def("view_ptr", &ReturnTester::view, rvp::reference_internal) in TEST_SUBMODULE()
[all …]
Dtest_eigen.py116 assert m.cpp_ref_any(m.ReturnTester.create()) == 1.
228 a = m.ReturnTester()
353 a = m.ReturnTester()
354 cstats = ConstructorStats.get(m.ReturnTester)
364 for meth in [m.ReturnTester.get, m.ReturnTester.get_ptr, m.ReturnTester.view,
365 m.ReturnTester.view_ptr, m.ReturnTester.ref_safe, m.ReturnTester.ref_const_safe,
366 m.ReturnTester.corners, m.ReturnTester.corners_const]:
367 assert_keeps_alive(m.ReturnTester, meth)
369 for meth in [m.ReturnTester.block_safe, m.ReturnTester.block_const]:
370 assert_keeps_alive(m.ReturnTester, meth, 4, 3, 2, 1)