Searched refs:m_ptr (Results 1 - 4 of 4) sorted by relevance
/gem5/ext/pybind11/tests/ |
H A D | object.h | 65 ref() : m_ptr(nullptr) { print_default_created(this); track_default_created((ref_tag*) this); } 68 ref(T *ptr) : m_ptr(ptr) { 69 if (m_ptr) ((Object *) m_ptr)->incRef(); 71 print_created(this, "from pointer", m_ptr); track_created((ref_tag*) this, "from pointer"); 76 ref(const ref &r) : m_ptr(r.m_ptr) { 77 if (m_ptr) 78 ((Object *) m_ptr)->incRef(); 80 print_copy_created(this, "with pointer", m_ptr); track_copy_create 172 T *m_ptr; member in class:ref [all...] |
/gem5/ext/pybind11/include/pybind11/ |
H A D | pytypes.h | 179 handle(PyObject *ptr) : m_ptr(ptr) { } // Allow implicit conversion from PyObject* 182 PyObject *ptr() const { return m_ptr; } 183 PyObject *&ptr() { return m_ptr; } 190 const handle& inc_ref() const & { Py_XINCREF(m_ptr); return *this; } 197 const handle& dec_ref() const & { Py_XDECREF(m_ptr); return *this; } 205 explicit operator bool() const { return m_ptr != nullptr; } 211 bool operator==(const handle &h) const { return m_ptr == h.m_ptr; } 213 bool operator!=(const handle &h) const { return m_ptr != h.m_ptr; } 217 PyObject *m_ptr = nullptr; member in class:handle [all...] |
H A D | numpy.h | 451 m_ptr = descr.strip_padding(info.itemsize ? info.itemsize : descr.itemsize()).release().ptr(); 455 m_ptr = from_args(pybind11::str(format)).release().ptr(); 466 m_ptr = from_args(args).release().ptr(); 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; 588 m_ptr = tmp.release().ptr(); 614 return reinterpret_borrow<pybind11::dtype>(detail::array_proxy(m_ptr)->descr); 624 return detail::array_descriptor_proxy(detail::array_proxy(m_ptr)->descr)->elsize; 634 return detail::array_proxy(m_ptr) [all...] |
H A D | pybind11.h | 330 m_ptr = PyCFunction_NewEx(rec->def, rec_capsule.ptr(), scope_module.ptr()); 331 if (!m_ptr) 335 m_ptr = rec->sibling.ptr(); 387 PyCFunctionObject *func = (PyCFunctionObject *) m_ptr; 393 m_ptr = PYBIND11_INSTANCE_METHOD_NEW(m_ptr, rec->scope.ptr()); 394 if (!m_ptr) 803 m_ptr = PyModule_Create(def); 805 m_ptr = Py_InitModule3(name, nullptr, doc); 807 if (m_ptr [all...] |
Completed in 18 milliseconds