Searched refs:SharedPtrRef (Results 1 – 2 of 2) sorted by relevance
/external/python/pybind11/tests/ |
D | test_smart_ptr.cpp | 258 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
|
D | test_smart_ptr.py | 170 s = m.SharedPtrRef()
|