33 #ifndef GOOGLE_PROTOBUF_PYTHON_CPP_SCOPED_PYOBJECT_PTR_H__ 34 #define GOOGLE_PROTOBUF_PYTHON_CPP_SCOPED_PYOBJECT_PTR_H__ 76 PyObject*
get()
const {
return ptr_; }
78 Py_ssize_t
refcnt()
const {
return Py_REFCNT(ptr_); }
80 void inc()
const { Py_INCREF(ptr_); }
96 #endif // GOOGLE_PROTOBUF_PYTHON_CPP_SCOPED_PYOBJECT_PTR_H__ Py_ssize_t refcnt() const
Definition: scoped_pyobject_ptr.h:78
DOMString p
Definition: WebCryptoAPI.idl:116
Definition: scoped_pyobject_ptr.h:41
ScopedPyObjectPtr(PyObject *p=NULL)
Definition: scoped_pyobject_ptr.h:45
PyObject * release()
Definition: scoped_pyobject_ptr.h:65
~ScopedPyObjectPtr()
Definition: scoped_pyobject_ptr.h:48
PyObject * operator->() const
Definition: scoped_pyobject_ptr.h:71
PyObject * reset(PyObject *p=NULL)
Definition: scoped_pyobject_ptr.h:57
#define NULL
Definition: common_types.h:41
Definition: gflags_completions.h:115
bool operator==(const PyObject *p) const
Definition: scoped_pyobject_ptr.h:86
bool operator!=(const PyObject *p) const
Definition: scoped_pyobject_ptr.h:87
void inc() const
Definition: scoped_pyobject_ptr.h:80