Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::python::ScopedPythonPtr< PyObjectStruct > Class Template Reference

#include <scoped_pyobject_ptr.h>

Public Member Functions

PyObject * as_pyobject () const
 
PyObjectStruct * get () const
 
void inc () const
 
bool operator!= (const PyObjectStruct *p) const
 
bool operator== (const PyObjectStruct *p) const
 
PyObjectStruct * release ()
 
PyObjectStruct * reset (PyObjectStruct *p=NULL)
 
 ScopedPythonPtr (PyObjectStruct *py_object=NULL)
 
 ~ScopedPythonPtr ()
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (ScopedPythonPtr)
 

Private Attributes

PyObjectStruct * ptr_
 

Detailed Description

template<typename PyObjectStruct>
class google::protobuf::python::ScopedPythonPtr< PyObjectStruct >

Definition at line 46 of file scoped_pyobject_ptr.h.

Constructor & Destructor Documentation

◆ ScopedPythonPtr()

template<typename PyObjectStruct >
google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::ScopedPythonPtr ( PyObjectStruct *  py_object = NULL)
inlineexplicit

Definition at line 50 of file scoped_pyobject_ptr.h.

◆ ~ScopedPythonPtr()

template<typename PyObjectStruct >
google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::~ScopedPythonPtr ( )
inline

Definition at line 54 of file scoped_pyobject_ptr.h.

Member Function Documentation

◆ as_pyobject()

template<typename PyObjectStruct >
PyObject* google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::as_pyobject ( ) const
inline

Definition at line 78 of file scoped_pyobject_ptr.h.

◆ get()

template<typename PyObjectStruct >
PyObjectStruct* google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::get ( ) const
inline

Definition at line 76 of file scoped_pyobject_ptr.h.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

template<typename PyObjectStruct >
google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( ScopedPythonPtr< PyObjectStruct >  )
private

◆ inc()

template<typename PyObjectStruct >
void google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::inc ( ) const
inline

Definition at line 82 of file scoped_pyobject_ptr.h.

◆ operator!=()

template<typename PyObjectStruct >
bool google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::operator!= ( const PyObjectStruct *  p) const
inline

Definition at line 87 of file scoped_pyobject_ptr.h.

◆ operator==()

template<typename PyObjectStruct >
bool google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::operator== ( const PyObjectStruct *  p) const
inline

Definition at line 86 of file scoped_pyobject_ptr.h.

◆ release()

template<typename PyObjectStruct >
PyObjectStruct* google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::release ( )
inline

Definition at line 70 of file scoped_pyobject_ptr.h.

◆ reset()

template<typename PyObjectStruct >
PyObjectStruct* google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::reset ( PyObjectStruct *  p = NULL)
inline

Definition at line 62 of file scoped_pyobject_ptr.h.

Member Data Documentation

◆ ptr_

template<typename PyObjectStruct >
PyObjectStruct* google::protobuf::python::ScopedPythonPtr< PyObjectStruct >::ptr_
private

Definition at line 90 of file scoped_pyobject_ptr.h.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10