Searched refs:reinterpret_borrow (Results 1 - 10 of 10) sorted by relevance

/gem5/ext/pybind11/include/pybind11/
H A Dfunctional.h35 auto func = reinterpret_borrow<function>(src);
46 auto c = reinterpret_borrow<capsule>(PyCFunction_GET_SELF(cfunc.ptr()));
H A Dstl.h74 auto s = reinterpret_borrow<pybind11::set>(src);
108 auto d = reinterpret_borrow<dict>(src);
149 auto s = reinterpret_borrow<sequence>(src);
214 auto l = reinterpret_borrow<sequence>(src);
H A Dpytypes.h233 PYBIND11_DEPRECATED("Use reinterpret_borrow<object>() or reinterpret_steal<object>()")
280 template <typename T> friend T reinterpret_borrow(handle);
298 py::object o = reinterpret_borrow<py::object>(p);
300 py::tuple t = reinterpret_borrow<py::tuple>(p); // <-- `p` must be already be a `tuple`
302 template <typename T> T reinterpret_borrow(handle h) { return {h, object::borrowed_t{}}; } function
305 Like `reinterpret_borrow`, but steals the reference.
420 return reinterpret_borrow<object>(default_);
429 return reinterpret_borrow<object>(default_);
492 get_cache() = reinterpret_borrow<object>(object_or_cast(std::forward<T>(value)));
573 return reinterpret_borrow<objec
[all...]
H A Dpybind11.h296 auto rec_capsule = reinterpret_borrow<capsule>(PyCFunction_GET_SELF(rec->sibling.ptr()));
535 dict kwargs = reinterpret_borrow<dict>(kwargs_in);
581 extra_args = reinterpret_borrow<tuple>(args_in);
747 auto args_ = reinterpret_borrow<tuple>(args_in);
755 auto kwargs = reinterpret_borrow<dict>(kwargs_in);
840 auto result = reinterpret_borrow<module>(PyImport_AddModule(full_name.c_str()));
882 return reinterpret_borrow<dict>(p ? p : module::import("__main__").attr("__dict__").ptr());
945 auto t = reinterpret_borrow<tuple>(value->tp_bases);
1365 return h ? (detail::function_record *) reinterpret_borrow<capsule>(PyCFunction_GET_SELF(h.ptr()))
H A Dcast.h93 for (handle parent : reinterpret_borrow<tuple>(t->tp_bases))
130 for (handle parent : reinterpret_borrow<tuple>(type->tp_bases))
622 type_info *foreign_typeinfo = reinterpret_borrow<capsule>(getattr(pytype, local_key));
1089 value = reinterpret_borrow<capsule>(h);
1370 const auto seq = reinterpret_borrow<sequence>(src);
1571 value = reinterpret_borrow<type>(src);
1670 T cast(const handle &handle) { return T(reinterpret_borrow<object>(handle)); }
2043 for (const auto &k : reinterpret_borrow<dict>(kp)) {
H A Deigen.h435 Array aref = reinterpret_borrow<Array>(src);
551 auto obj = reinterpret_borrow<object>(src);
H A Dnumpy.h501 return reinterpret_borrow<object>(obj);
569 flags = reinterpret_borrow<array>(base).flags() & ~detail::npy_api::NPY_ARRAY_OWNDATA_;
614 return reinterpret_borrow<pybind11::dtype>(detail::array_proxy(m_ptr)->descr);
639 return reinterpret_borrow<object>(detail::array_proxy(m_ptr)->base);
1158 return reinterpret_borrow<pybind11::dtype>(dtype_ptr());
/gem5/ext/pybind11/tests/
H A Dtest_methods_and_attributes.cpp267 auto emna = py::reinterpret_borrow<py::class_<ExampleMandA>>(py::module::import("pybind11_tests.methods_and_attributes").attr("ExampleMandA"));
272 auto emna = py::reinterpret_borrow<py::class_<ExampleMandA>>(py::module::import("pybind11_tests.methods_and_attributes").attr("ExampleMandA"));
H A Dtest_class.cpp198 auto o = py::reinterpret_borrow<py::tuple>(args)[0];
/gem5/ext/pybind11/include/pybind11/detail/
H A Dclass.h203 for (handle h : reinterpret_borrow<tuple>(tinfo->type->tp_bases)) {
467 for (auto type : reinterpret_borrow<tuple>(Py_TYPE(obj)->tp_mro)) {

Completed in 40 milliseconds