Searched refs:detail (Results 1 - 25 of 38) sorted by relevance

12

/gem5/ext/pybind11/include/pybind11/detail/
H A Dtypeid.h2 pybind11/detail/typeid.h: Compiler-independent access to type identifiers
22 NAMESPACE_BEGIN(detail)
40 detail::erase_all(name, "class ");
41 detail::erase_all(name, "struct ");
42 detail::erase_all(name, "enum ");
44 detail::erase_all(name, "pybind11::");
46 NAMESPACE_END(detail)
51 detail::clean_type_id(name);
H A Dinternals.h2 pybind11/detail/internals.h: Internal data structure and related functions
15 NAMESPACE_BEGIN(detail)
104 std::forward_list<std::string> static_strings; // Stores the std::strings backing detail::c_str()
304 NAMESPACE_END(detail)
310 auto &internals = detail::get_internals();
317 detail::get_internals().shared_data[name] = data;
326 auto &internals = detail::get_internals();
H A Dcommon.h2 pybind11/detail/common.h -- Basic macros
353 NAMESPACE_BEGIN(detail)
440 static_assert(std::is_standard_layout<instance>::value, "Internal error: `pybind11::detail::instance` is not standard layout!");
651 #define PYBIND11_EXPAND_SIDE_EFFECTS(PATTERN) pybind11::detail::expand_side_effects{ ((PATTERN), void(), false)..., false }
654 NAMESPACE_END(detail)
685 NAMESPACE_BEGIN(detail)
695 std::is_integral<T>::value ? detail::log2(sizeof(T))*2 + std::is_unsigned<T>::value : 8 + (
698 NAMESPACE_END(detail)
700 template <typename T> struct format_descriptor<T, detail::enable_if_t<std::is_arithmetic<T>::value>> {
701 static constexpr const char c = "?bBhHiIqQfdg"[detail
[all...]
H A Ddescr.h2 pybind11/detail/descr.h: Helper type for concatenating type signatures at compile time
15 NAMESPACE_BEGIN(detail)
99 NAMESPACE_END(detail)
H A Dclass.h2 pybind11/detail/class.h: Python C API implementation details for py::class_
16 NAMESPACE_BEGIN(detail)
201 inline void traverse_offset_bases(void *valueptr, const detail::type_info *tinfo, instance *self,
292 auto instance = reinterpret_cast<detail::instance *>(nurse);
299 auto instance = reinterpret_cast<detail::instance *>(self);
316 auto instance = reinterpret_cast<detail::instance *>(self);
625 NAMESPACE_END(detail)
/gem5/ext/pybind11/tests/test_embed/
H A Dexternal_module.cpp21 return reinterpret_cast<uintptr_t>(&py::detail::get_internals());
H A Dtest_interpreter.cpp104 auto **&ipp = py::detail::get_internals_pp();
116 REQUIRE(reinterpret_cast<uintptr_t>(*py::detail::get_internals_pp()) ==
129 pybind11::detail::get_internals();
132 REQUIRE(reinterpret_cast<uintptr_t>(*py::detail::get_internals_pp()) ==
141 py::capsule(&ran, [](void *ran) { py::detail::get_internals(); *static_cast<bool *>(ran) = true; });
177 // Subinterpreters get their own copy of builtins. detail::get_internals() still
/gem5/ext/pybind11/include/pybind11/
H A Dcomplex.h22 template <typename T> struct format_descriptor<std::complex<T>, detail::enable_if_t<std::is_floating_point<T>::value>> {
31 std::complex<T>, detail::enable_if_t<std::is_floating_point<T>::value>>::value[3];
35 NAMESPACE_BEGIN(detail)
37 template <typename T> struct is_fmt_numeric<std::complex<T>, detail::enable_if_t<std::is_floating_point<T>::value>> {
64 NAMESPACE_END(detail)
H A Diostream.h21 NAMESPACE_BEGIN(detail)
75 NAMESPACE_END(detail)
106 detail::pythonbuf buffer;
147 NAMESPACE_BEGIN(detail)
173 NAMESPACE_END(detail)
202 inline class_<detail::OstreamRedirect> add_ostream_redirect(module m, std::string name = "ostream_redirect") {
203 return class_<detail::OstreamRedirect>(m, name.c_str(), module_local())
205 .def("__enter__", &detail::OstreamRedirect::enter)
206 .def("__exit__", [](detail::OstreamRedirect &self_, args) { self_.exit(); });
H A Dembed.h62 pybind11::detail::embedded_module name(PYBIND11_TOSTRING(name), \
68 NAMESPACE_BEGIN(detail)
87 NAMESPACE_END(detail)
154 detail::internals **internals_ptr_ptr = detail::get_internals_pp();
H A Dpybind11.h46 #include "detail/class.h"
47 #include "detail/init.h"
69 typename = detail::enable_if_t<detail::is_lambda<Func>::value>>
72 (detail::function_signature_t<Func> *) nullptr, extra...);
94 PYBIND11_NOINLINE detail::function_record *make_function_record() {
95 return new detail::function_record();
101 using namespace detail;
193 void initialize_generic(detail::function_record *rec, const char *text,
254 if (auto tinfo = detail
1128 def(const detail::op_<id, ot, L, R> &op, const Extra&... extra) argument
1134 def_cast(const detail::op_<id, ot, L, R> &op, const Extra&... extra) argument
[all...]
H A Dbuffer_info.h12 #include "detail/common.h"
29 detail::any_container<ssize_t> shape_in, detail::any_container<ssize_t> strides_in)
39 buffer_info(T *ptr, detail::any_container<ssize_t> shape_in, detail::any_container<ssize_t> strides_in)
84 detail::any_container<ssize_t> &&shape_in, detail::any_container<ssize_t> &&strides_in)
91 NAMESPACE_BEGIN(detail)
99 template <typename T> struct compare_buffer_info<T, detail::enable_if_t<std::is_integral<T>::value>> {
107 NAMESPACE_END(detail)
[all...]
H A Dnumpy.h42 NAMESPACE_BEGIN(detail)
442 NAMESPACE_END(detail)
446 PYBIND11_OBJECT_DEFAULT(dtype, object, detail::npy_api::get().PyArrayDescr_Check_);
472 if (!detail::npy_api::get().PyArray_DescrConverter_(args.ptr(), &ptr) || !ptr)
479 return detail::npy_format_descriptor<typename std::remove_cv<T>::type>::dtype();
484 return detail::array_descriptor_proxy(m_ptr)->elsize;
489 return detail::array_descriptor_proxy(m_ptr)->names != nullptr;
494 return detail::array_descriptor_proxy(m_ptr)->kind;
540 PYBIND11_OBJECT_CVT(array, buffer, detail::npy_api::get().PyArray_Check_, raw_array)
543 c_style = detail
[all...]
H A Dpytypes.h12 #include "detail/common.h"
24 NAMESPACE_BEGIN(detail)
68 the returned ``detail::item_accessor`` instance to a `handle` or `object`
78 returned ``detail::obj_attr_accessor`` instance to a `handle` or `object`
161 NAMESPACE_END(detail)
174 class handle : public detail::object_api<handle> {
314 NAMESPACE_BEGIN(detail)
316 NAMESPACE_END(detail)
326 error_already_set() : std::runtime_error(detail::error_string()) {
367 template <typename T, detail
[all...]
H A Dcast.h14 #include "detail/typeid.h"
15 #include "detail/descr.h"
16 #include "detail/internals.h"
36 NAMESPACE_BEGIN(detail)
146 inline const std::vector<detail::type_info *> &all_type_info(PyTypeObject *type) {
160 PYBIND11_NOINLINE inline detail::type_info* get_type_info(PyTypeObject *type) {
165 pybind11_fail("pybind11::detail::get_type_info: type has multiple pybind11-registered bases");
169 inline detail::type_info *get_local_type_info(const std::type_index &tp) {
177 inline detail::type_info *get_global_type_info(const std::type_index &tp) {
186 PYBIND11_NOINLINE inline detail
[all...]
H A Dstl_bind.h12 #include "detail/common.h"
19 NAMESPACE_BEGIN(detail)
373 enable_if_t<detail::any_of<std::is_same<Args, buffer_protocol>...>::value>
390 if (!detail::compare_buffer_info<T>::compare(info) || (ssize_t) sizeof(T) != info.itemsize)
407 enable_if_t<!detail::any_of<std::is_same<Args, buffer_protocol>...>::value> vector_buffer(Class_&) {}
409 NAMESPACE_END(detail)
421 auto vtype_info = detail::get_type_info(typeid(vtype));
427 detail::vector_buffer<Vector, Class_, Args...>(cl);
432 detail::vector_if_copy_constructible<Vector, Class_>(cl);
435 detail
[all...]
H A Dfunctional.h16 NAMESPACE_BEGIN(detail)
100 NAMESPACE_END(detail)
H A Dattr.h93 template <> struct call_guard<> { using type = detail::void_type; };
113 NAMESPACE_BEGIN(detail)
166 /// True if this is a new-style `__init__` defined in `detail/init.h`
231 void (*dealloc)(detail::value_and_holder &) = nullptr;
258 auto base_info = detail::get_type_info(base, false);
261 detail::clean_type_id(tname);
268 detail::clean_type_id(tname);
291 /// Tag for a new-style `__init__` defined in `detail/init.h`
492 NAMESPACE_END(detail)
/gem5/ext/pybind11/tests/
H A Dtest_numpy_vectorize.cpp75 py::enum_<py::detail::broadcast_trivial>(m, "trivial")
76 .value("f_trivial", py::detail::broadcast_trivial::f_trivial)
77 .value("c_trivial", py::detail::broadcast_trivial::c_trivial)
78 .value("non_trivial", py::detail::broadcast_trivial::non_trivial);
87 return py::detail::broadcast(buffers, ndim, shape);
H A Dpybind11_tests.h57 NAMESPACE_BEGIN(detail)
64 NAMESPACE_END(detail)
H A Dtest_tagbased_polymorphic.cpp103 py::detail::clean_type_id(raw_name);
109 struct polymorphic_type_hook<itype, detail::enable_if_t<std::is_base_of<Animal, itype>::value>>
H A Dtest_numpy_dtypes.cpp287 py::detail::npy_format_descriptor<A>::register_dtype(
290 py::detail::npy_format_descriptor<B>::register_dtype(
291 std::vector<py::detail::field_descriptor>{}
455 list.append(py::bool_(py::detail::compare_buffer_info<float>::compare(py::buffer_info(nullptr, sizeof(float), "f", 1))));
456 list.append(py::bool_(py::detail::compare_buffer_info<unsigned>::compare(py::buffer_info(nullptr, sizeof(int), "I", 1))));
457 list.append(py::bool_(py::detail::compare_buffer_info<long>::compare(py::buffer_info(nullptr, sizeof(long), "l", 1))));
458 list.append(py::bool_(py::detail::compare_buffer_info<long>::compare(py::buffer_info(nullptr, sizeof(long), sizeof(long) == sizeof(int) ? "i" : "q", 1))));
459 list.append(py::bool_(py::detail::compare_buffer_info<CompareStruct>::compare(py::buffer_info(nullptr, sizeof(CompareStruct), "T{?:x:3xI:y:f:z:}", 1))));
H A Dpybind11_tests.cpp60 return py::detail::get_internals().registered_instances.size();
H A Dtest_stl.cpp25 namespace pybind11 { namespace detail {
36 }} // namespace pybind11::detail
201 static_assert(std::is_same<py::detail::variant_caster_visitor::result_type, py::handle>::value,
215 return py::detail::visit_helper<variant>::call(visitor(), v);
218 return py::detail::visit_helper<variant>::call(visitor(), v);
/gem5/src/systemc/ext/utils/
H A Dendian.hh21 * Copyright notice reproduced from <sysc/packages/boost/detail/limits.hpp>,
76 # error The file boost/detail/endian.hpp needs to be set up for your CPU type.

Completed in 53 milliseconds

12