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

/gem5/ext/pybind11/include/pybind11/
H A Deval.h49 return reinterpret_steal<object>(result);
90 auto fobj = reinterpret_steal<object>(PyFile_FromString(
114 return reinterpret_steal<object>(result);
H A Dpytypes.h233 PYBIND11_DEPRECATED("Use reinterpret_borrow<object>() or reinterpret_steal<object>()")
281 template <typename T> friend T reinterpret_steal(handle);
310 py::str s = reinterpret_steal<py::str>(p); // <-- `p` must be already be a `str`
312 template <typename T> T reinterpret_steal(handle h) { return {h, object::stolen_t{}}; } function
406 return reinterpret_steal<object>(result);
412 return reinterpret_steal<object>(result);
417 return reinterpret_steal<object>(result);
426 return reinterpret_steal<object>(result);
542 return reinterpret_steal<object>(result);
556 return reinterpret_steal<objec
[all...]
H A Dstl.h91 auto value_ = reinterpret_steal<object>(key_conv::cast(forward_like<T>(value), policy, parent));
131 auto key = reinterpret_steal<object>(key_conv::cast(forward_like<T>(kv.first), policy_key, parent));
132 auto value = reinterpret_steal<object>(value_conv::cast(forward_like<T>(kv.second), policy_value, parent));
175 auto value_ = reinterpret_steal<object>(value_conv::cast(forward_like<T>(value), policy, parent));
232 auto value_ = reinterpret_steal<object>(value_conv::cast(forward_like<T>(value), policy, parent));
H A Dcast.h515 auto inst = reinterpret_steal<object>(make_new_instance(tinfo->type));
697 auto temp = reinterpret_steal<object>(converter(src.ptr(), typeinfo->type));
1014 auto tmp = reinterpret_steal<object>(std::is_floating_point<T>::value
1193 temp = reinterpret_steal<object>(PyUnicode_FromObject(load_src.ptr()));
1199 object utfNbytes = reinterpret_steal<object>(PyUnicode_AsEncodedString(
1408 reinterpret_steal<object>(make_caster<Ts>::cast(std::get<Is>(std::forward<T>(src)), policy, parent))...
1680 return reinterpret_steal<object>(detail::make_caster<T>::cast(value, policy, parent));
1761 { reinterpret_steal<object>(detail::make_caster<Args>::cast(
1806 value(reinterpret_steal<object>(
1960 return reinterpret_steal<objec
[all...]
H A Dnumpy.h474 return reinterpret_steal<dtype>(ptr);
576 auto tmp = reinterpret_steal<object>(api.PyArray_NewFromDescr_(
585 tmp = reinterpret_steal<object>(api.PyArray_NewCopy_(tmp.ptr(), -1 /* any order */));
741 return reinterpret_steal<array>(api.PyArray_Squeeze_(m_ptr));
752 object new_array = reinterpret_steal<object>(
762 auto result = reinterpret_steal<array>(raw_array(h.ptr(), ExtraFlags));
923 auto result = reinterpret_steal<array_t>(raw_array_t(h.ptr()));
1047 return reinterpret_steal<pybind11::dtype>(ptr);
1181 if (auto descr = reinterpret_steal<object>(api.PyArray_DescrFromScalar_(obj))) {
H A Dpybind11.h551 kwargs = reinterpret_steal<dict>(PyDict_Copy(kwargs.ptr()));
852 return reinterpret_steal<module>(obj);
860 *this = reinterpret_steal<module>(obj);
H A Deigen.h277 auto ref = reinterpret_steal<array>(eigen_ref_array<props>(value));
/gem5/src/python/pybind11/
H A Devent.cc146 return py::reinterpret_steal<py::object>(
/gem5/ext/pybind11/include/pybind11/detail/
H A Dclass.h50 auto name_obj = reinterpret_steal<object>(PYBIND11_FROM_STRING(name));
164 auto name_obj = reinterpret_steal<object>(PYBIND11_FROM_STRING(name));
367 auto name_obj = reinterpret_steal<object>(PYBIND11_FROM_STRING(name));
518 auto name = reinterpret_steal<object>(PYBIND11_FROM_STRING(rec.name));
523 qualname = reinterpret_steal<object>(
/gem5/ext/pybind11/tests/
H A Dtest_class.cpp208 return py::reinterpret_steal<py::object>(PyCFunction_NewEx(def, nullptr, m.ptr()));

Completed in 45 milliseconds