Searched refs:keep_alive (Results 1 - 5 of 5) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_call_policies.cpp2 tests/test_call_policies.cpp -- keep_alive and call_guard
56 .def(py::init([](Child *) { return new Parent(); }), py::keep_alive<1, 2>())
58 .def("addChildKeepAlive", &Parent::addChild, py::keep_alive<1, 2>())
60 .def("returnChildKeepAlive", &Parent::returnChild, py::keep_alive<1, 0>())
61 .def("returnNullChildKeepAliveChild", &Parent::returnNullChild, py::keep_alive<1, 0>())
62 .def("returnNullChildKeepAliveParent", &Parent::returnNullChild, py::keep_alive<0, 1>());
H A Dtest_opaque_types.cpp34 }, py::keep_alive<0, 1>());
H A Dtest_sequences_and_iterators.cpp193 py::keep_alive<0, 1>() /* Essential: keep object alive while iterator exists */)
253 py::keep_alive<0, 1>())
255 py::keep_alive<0, 1>())
270 }, py::keep_alive<0, 1>())
273 }, py::keep_alive<0, 1>())
/gem5/ext/pybind11/include/pybind11/
H A Dattr.h45 template <size_t Nurse, size_t Patient> struct keep_alive { }; struct
298 * runtime to deal with custom call policies (e.g. keep_alive).
442 * Process a keep_alive call policy -- invokes keep_alive_impl during the
446 template <size_t Nurse, size_t Patient> struct process_attribute<keep_alive<Nurse, Patient>> : public process_attribute_default<keep_alive<Nurse, Patient>> {
H A Dstl_bind.h313 keep_alive<0, 1>() /* Essential: keep list alive while iterator exists */
340 keep_alive<0, 1>() /* Essential: keep list alive while iterator exists */
605 keep_alive<0, 1>() /* Essential: keep list alive while iterator exists */
610 keep_alive<0, 1>() /* Essential: keep list alive while iterator exists */

Completed in 11 milliseconds