Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_smart_ptr.cpp258 struct SharedPtrRef { in TEST_SUBMODULE() struct
269 using A = SharedPtrRef::A; in TEST_SUBMODULE()
271 py::class_<SharedPtrRef>(m, "SharedPtrRef") in TEST_SUBMODULE()
273 .def_readonly("ref", &SharedPtrRef::value) in TEST_SUBMODULE()
274 .def_property_readonly("copy", [](const SharedPtrRef &s) { return s.value; }, in TEST_SUBMODULE()
276 .def_readonly("holder_ref", &SharedPtrRef::shared) in TEST_SUBMODULE()
277 .def_property_readonly("holder_copy", [](const SharedPtrRef &s) { return s.shared; }, in TEST_SUBMODULE()
279 .def("set_ref", [](SharedPtrRef &, const A &) { return true; }) in TEST_SUBMODULE() argument
280 .def("set_holder", [](SharedPtrRef &, std::shared_ptr<A>) { return true; }); in TEST_SUBMODULE() argument
Dtest_smart_ptr.py170 s = m.SharedPtrRef()