Searched refs:PyObject (Results 1 - 21 of 21) sorted by relevance

/gem5/ext/dsent/
H A Dinterface.cc38 static PyObject *DSENTError;
39 static PyObject* dsent_initialize(PyObject*, PyObject*);
40 static PyObject* dsent_finalize(PyObject*, PyObject*);
41 static PyObject* dsent_computeRouterPowerAndArea(PyObject*, PyObject*);
[all...]
/gem5/src/sim/
H A Dpy_interact.cc39 PyObject *globals;
40 PyObject *locals;
H A Dinit.hh56 typedef _object PyObject; typedef
74 PyObject *getCode() const;
78 static PyObject *importerModule;
94 static PyObject *initAll();
H A Dinit.cc77 PyObject *EmbeddedPython::importerModule = NULL;
102 PyObject *
118 PyObject *code = getCode();
119 PyObject *result = PyObject_CallMethod(importerModule, PyCC("add_module"),
137 PyObject *code = importer->getCode();
195 PyObject *
290 PyObject *module = PyImport_AddModule(PyCC("__main__"));
293 PyObject *dict = PyModule_GetDict(module);
296 PyObject *result;
/gem5/ext/pybind11/include/pybind11/detail/
H A Dclass.h24 # define PYBIND11_SET_OLDPY_QUALNAME(obj, nameobj) setattr((PyObject *) obj, "__qualname__", nameobj)
35 extern "C" inline PyObject *pybind11_static_get(PyObject *self, PyObject * /*ob*/, PyObject *cls) {
40 extern "C" inline int pybind11_static_set(PyObject *self, PyObject *obj, PyObject *value) {
41 PyObject *cls = PyType_Check(obj) ? obj : (PyObject *) Py_TYP
[all...]
H A Dinternals.h19 inline PyObject *make_object_base_type(PyTypeObject *metaclass);
84 inline size_t operator()(const std::pair<const PyObject *, const char *>& v) const {
98 std::unordered_set<std::pair<const PyObject *, const char *>, overload_hash> inactive_overload_cache;
99 type_map<std::vector<bool (*)(PyObject *, void *&)>> direct_conversions;
100 std::unordered_map<const PyObject *, std::vector<PyObject *>> patients;
103 std::vector<PyObject *> loader_patient_stack; // Used by `loader_life_support`
107 PyObject *instance_base;
123 std::vector<PyObject *(*)(PyObject *, PyTypeObjec
[all...]
H A Dcommon.h162 #define PYBIND11_SLICE_OBJECT PyObject
169 extern "C" PYBIND11_EXPORT PyObject *PyInit_##name(); \
170 extern "C" PYBIND11_EXPORT PyObject *PyInit_##name()
195 static PyObject *pybind11_init_wrapper(); \
200 PyObject *pybind11_init_wrapper()
210 #define PYBIND11_TRY_NEXT_OVERLOAD ((PyObject *) 1) // special failure return code
257 static PyObject *pybind11_init(); \
264 PyObject *pybind11_init()
390 PyObject *weakrefs;
715 PyObject *typ
[all...]
H A Dinit.h295 setattr((PyObject *) v_h.inst, "__dict__", result.second);
/gem5/ext/pybind11/tests/
H A Dcross_module_gil_utils.cpp49 PyObject* PyInit_cross_module_gil_utils()
55 PyObject* m =
H A Dconstructor_stats.h113 PyObject *globals = PyEval_GetGlobals();
114 PyObject *result = PyRun_String(
H A Dtest_class.cpp197 auto f = [](PyObject *, PyObject *args) -> PyObject * {
H A Dtest_pytypes.cpp99 auto capsule = py::capsule((void *) 1234, "pointer type description", [](PyObject *ptr) {
H A Dtest_methods_and_attributes.cpp341 py::class_<MetaclassOverride>(m, "MetaclassOverride", py::metaclass((PyObject *) &PyType_Type))
/gem5/ext/pybind11/include/pybind11/
H A Deval.h34 /* PyRun_String does not accept a PyObject / encoding specifier,
46 PyObject *result = PyRun_String(buffer.c_str(), start, global.ptr(), local.ptr());
104 PyObject *result = PyRun_File(f, fname_str.c_str(), start, global.ptr(),
108 PyObject *result = PyRun_FileEx(f, fname_str.c_str(), start, global.ptr(),
H A Dembed.h21 extern "C" PyObject *pybind11_init_impl_##name() { \
48 static PyObject PYBIND11_CONCAT(*pybind11_init_wrapper_, name)() { \
73 using init_t = PyObject *(*)();
H A Dpytypes.h51 The only requirement for `Derived` is to implement ``PyObject *Derived::ptr() const``.
167 ``PyObject *`` in Python's C API). It does not perform any automatic reference
179 handle(PyObject *ptr) : m_ptr(ptr) { } // Allow implicit conversion from PyObject*
181 /// Return the underlying ``PyObject *`` pointer
182 PyObject *ptr() const { return m_ptr; }
183 PyObject *&ptr() { return m_ptr; }
217 PyObject *m_ptr = nullptr;
224 object (i.e. a ``PyObject *`` in Python's C API). In contrast to `handle`, it
248 PyObject *tm
[all...]
H A Dnumpy.h47 PyObject *typeobj;
56 PyObject *fields;
57 PyObject *names;
66 PyObject *base;
67 PyObject *descr;
76 PyObject *base;
80 PyObject* dtype_ptr;
171 bool PyArray_Check_(PyObject *obj) const {
174 bool PyArrayDescr_Check_(PyObject *obj) const {
179 PyObject *(*PyArray_DescrFromType
[all...]
H A Dpybind11.h255 handle th((PyObject *) tinfo->type);
424 static PyObject *dispatcher(PyObject *self, PyObject *args_in, PyObject *kwargs_in) {
509 call.args.push_back(reinterpret_cast<PyObject *>(&self_value_and_holder));
849 PyObject *obj = PyImport_ImportModule(name);
857 PyObject *obj = PyImport_ReloadModule(ptr());
881 PyObject *p = PyEval_GetGlobals();
955 buffer_info *(*get_buffer)(PyObject *, voi
[all...]
H A Dcast.h100 if (!PyType_Check((PyObject *) type)) continue;
203 return handle(type_info ? ((PyObject *) type_info->type) : nullptr);
459 return handle((PyObject *) it->second);
481 inline PyObject *make_new_instance(PyTypeObject *type);
511 return handle((PyObject *) it_i->second).inc_ref();
607 PYBIND11_NOINLINE static void *local_load(PyObject *src, const type_info *ti) {
1956 object call(PyObject *ptr) const {
1957 PyObject *result = PyObject_CallObject(ptr, m_args.ptr());
1989 object call(PyObject *ptr) const {
1990 PyObject *resul
[all...]
H A Dattr.h275 bases.append((PyObject *) base_info->type);
/gem5/ext/sst/
H A Dgem5.cc214 PyObject *mainModule,*mainDict;
234 PyObject *result;

Completed in 52 milliseconds