Lines Matching refs:inc_ref
190 const handle& inc_ref() const & { Py_XINCREF(m_ptr); return *this; }
234 object(handle h, bool is_borrowed) : handle(h) { if (is_borrowed) inc_ref(); }
236 object(const object &o) : handle(o) { inc_ref(); }
254 other.inc_ref();
285 object(handle h, borrowed_t) : handle(h) { inc_ref(); }
578 if (PyList_SetItem(obj.ptr(), static_cast<ssize_t>(index), val.inc_ref().ptr()) != 0) {
595 if (PyTuple_SetItem(obj.ptr(), static_cast<ssize_t>(index), val.inc_ref().ptr()) != 0) {
793 : Parent(check_(o) ? o.inc_ref().ptr() : ConvertFun(o.ptr()), stolen_t{}) \
1039 return handle(value ? Py_True : Py_False).inc_ref().ptr();
1237 return handle(op).inc_ref().ptr();