/gem5/ext/pybind11/tests/ |
H A D | test_opaque_types.cpp | 11 #include <pybind11/stl.h> 14 // IMPORTANT: Disable internal pybind11 translation mechanisms for STL data structures
|
H A D | test_stl_binders.cpp | 12 #include <pybind11/stl_bind.h> 13 #include <pybind11/numpy.h>
|
H A D | test_tagbased_polymorphic.cpp | 11 #include <pybind11/stl.h> 107 namespace pybind11 { namespace in struct:Animal
|
H A D | test_numpy_array.cpp | 12 #include <pybind11/numpy.h> 13 #include <pybind11/stl.h> 20 py::dtype pybind11{}; 28 check.pybind11 = py::dtype::of<T>(); 142 .def_readonly("pybind11", &DtypeCheck::pybind11) 144 return py::str("<DtypeCheck numpy={} pybind11={}>").format( 145 self.numpy, self.pybind11);
|
H A D | test_iostream.cpp | 11 #include <pybind11/iostream.h>
|
H A D | test_numpy_vectorize.cpp | 12 #include <pybind11/numpy.h>
|
H A D | pybind11_cross_module_tests.cpp | 12 #include <pybind11/stl_bind.h> 16 m.doc() = "pybind11 cross-module test module"; 30 m.def("throw_pybind_value_error", []() { throw py::value_error("pybind11 value error"); }); 31 m.def("throw_pybind_type_error", []() { throw py::type_error("pybind11 type error"); });
|
H A D | test_kwargs_and_defaults.cpp | 12 #include <pybind11/stl.h> 87 // pybind11 won't allow these to be bound: args and kwargs, if present, must be at the end.
|
H A D | test_stl.cpp | 12 #include <pybind11/stl.h> 25 namespace pybind11 { namespace detail { 36 }} // namespace pybind11::detail 249 // #1258: pybind11/stl.h converts string to vector<string>
|
H A D | test_methods_and_attributes.cpp | 16 using overload_cast_ = pybind11::detail::overload_cast_impl<Args...>; 112 namespace pybind11 { namespace detail { namespace 167 namespace pybind11 { namespace detail { namespace
|
H A D | test_numpy_array.py | 19 assert check.numpy == check.pybind11, check 20 if check.numpy.num != check.pybind11.num: 22 check, check.numpy.num, check.pybind11.num)) 383 assert str(excinfo.value) == 'cannot create a pybind11::array from a nullptr' 387 assert str(excinfo.value) == 'cannot create a pybind11::array_t from a nullptr'
|
H A D | test_sequences_and_iterators.cpp | 13 #include <pybind11/operators.h> 14 #include <pybind11/stl.h>
|
H A D | test_callbacks.cpp | 12 #include <pybind11/functional.h>
|
H A D | test_operator_overloading.cpp | 12 #include <pybind11/operators.h>
|
/gem5/ext/pybind11/include/pybind11/detail/ |
H A D | common.h | 2 pybind11/detail/common.h -- Basic macros 21 // the main `pybind11` namespace. 24 # define PYBIND11_NAMESPACE pybind11 __attribute__((visibility("hidden"))) 26 # define PYBIND11_NAMESPACE pybind11 51 # error pybind11 requires Intel C++ compiler v17 or newer 55 # error pybind11 requires clang 3.3 or newer 61 # error pybind11 requires Xcode/clang 5.0 or newer 65 # error pybind11 requires gcc 4.8 or newer 71 # error pybind11 requires MSVC 2015 update 3 or newer 164 #define PYBIND11_STR_TYPE ::pybind11 [all...] |
/gem5/ext/pybind11/include/pybind11/ |
H A D | numpy.h | 2 pybind11/numpy.h: Basic NumPy support, vectorize() wrapper 12 #include "pybind11.h" 231 pybind11_fail("pybind11 numpy support requires numpy >= 1.7.0"); 348 friend class pybind11::array; 412 friend class pybind11::array; 455 m_ptr = from_args(pybind11::str(format)).release().ptr(); 465 args["itemsize"] = pybind11::int_(itemsize); 510 struct field_descr { PYBIND11_STR_TYPE name; object format; pybind11::int_ offset; }; 515 auto name = spec[0].cast<pybind11::str>(); 517 auto offset = spec[1].cast<tuple>()[1].cast<pybind11 [all...] |
H A D | pybind11.h | 2 pybind11/pybind11.h: Main header file of the C++11 python 216 ("pybind11-bound class '" + class_name + "' is using an old-style " 218 "the upgrade guide in pybind11's docs. This message is only visible " 344 std::string(pybind11::str(rec->scope.attr("__name__"))) + "." + std::string(rec->name) + signature 400 /// When a cpp_function is GCed, release any memory allocated by pybind11 423 /// Main dispatch logic for calls to functions bound using pybind11 704 "Did you forget to `#include <pybind11/stl.h>`? Or <pybind11/complex.h>,\n" 705 "<pybind11/functiona [all...] |
H A D | stl.h | 2 pybind11/stl.h: Transparent conversion for STL data types 12 #include "pybind11.h" 72 if (!isinstance<pybind11::set>(src)) 74 auto s = reinterpret_borrow<pybind11::set>(src); 89 pybind11::set s;
|
H A D | cast.h | 2 pybind11/cast.h: Partial template specializations to cast between 62 /// This can only be used inside a pybind11-bound function, either by `argument_loader` 111 // having a large number of immediate pybind11-registered types seems fairly 156 * Gets a single pybind11 type info for a python type. Returns nullptr if neither the type nor any 157 * ancestors are pybind11-registered. Throws an exception if there are multiple bases--use 165 pybind11_fail("pybind11::detail::get_type_info: type has multiple pybind11-registered bases"); 196 pybind11_fail("pybind11::detail::get_type_info: unable to find type info for \"" + tname + "\""); 315 * if the given type (or ValueType, if omitted) is not a pybind11 base of the given instance. If 336 pybind11_fail("pybind11 [all...] |
H A D | pytypes.h | 2 pybind11/pytypes.h: Convenience wrapper classes for basic Python types 147 pybind11::str str() const; 465 // through pybind11::cast(obj) to convert it to an `object`. 496 PYBIND11_DEPRECATED("Use of obj.attr(...) as bool is deprecated in favor of pybind11::hasattr(obj, ...)") 799 Name(const ::pybind11::detail::accessor<Policy_> &a) : Name(object(a)) { } 973 explicit bytes(const pybind11::str &s); 984 inline bytes::bytes(const pybind11::str &s) { 1409 return {derived(), pybind11::str(key)}; 1425 pybind11::str object_api<D>::str() const { return pybind11 [all...] |
/gem5/ext/pybind11/tests/test_embed/ |
H A D | test_interpreter.cpp | 1 #include <pybind11/embed.h> 15 namespace py = pybind11; 129 pybind11::detail::get_internals(); 179 // global pybind11::internals;
|
/gem5/src/python/pybind11/ |
H A D | event.cc | 46 #include "pybind11/pybind11.h" 47 #include "pybind11/stl.h" 55 namespace py = pybind11;
|
H A D | stats.cc | 46 #include "pybind11/pybind11.h" 47 #include "pybind11/stl.h" 58 namespace py = pybind11;
|
H A D | core.cc | 47 #include "pybind11/pybind11.h" 48 #include "pybind11/stl.h" 50 #include "python/pybind11/core.hh" 65 namespace py = pybind11;
|
/gem5/src/sim/ |
H A D | init.cc | 60 #include "python/pybind11/pybind.hh" 70 namespace py = pybind11;
|