The Gaudi Framework  master (594c33fa)
GaudiPython::CallbackStreamBuf::PyObject_t Class Reference

Public Member Functions

 PyObject_t (PyObject *obj=nullptr)
 
 ~PyObject_t ()
 
PyObject * get ()
 

Private Attributes

PyObject * m_obj
 

Detailed Description

Definition at line 28 of file CallbackStreamBuf.h.

Constructor & Destructor Documentation

◆ PyObject_t()

GaudiPython::CallbackStreamBuf::PyObject_t::PyObject_t ( PyObject *  obj = nullptr)
inline

Definition at line 32 of file CallbackStreamBuf.h.

32  : m_obj( obj ) {
33  if ( m_obj ) Py_INCREF( m_obj );
34  }

◆ ~PyObject_t()

GaudiPython::CallbackStreamBuf::PyObject_t::~PyObject_t ( )
inline

Definition at line 35 of file CallbackStreamBuf.h.

35  {
36  if ( m_obj ) Py_DECREF( m_obj );
37  }

Member Function Documentation

◆ get()

PyObject* GaudiPython::CallbackStreamBuf::PyObject_t::get ( )
inline

Definition at line 38 of file CallbackStreamBuf.h.

38 { return m_obj; }

Member Data Documentation

◆ m_obj

PyObject* GaudiPython::CallbackStreamBuf::PyObject_t::m_obj
private

Definition at line 29 of file CallbackStreamBuf.h.


The documentation for this class was generated from the following file:
GaudiPython::CallbackStreamBuf::PyObject_t::m_obj
PyObject * m_obj
Definition: CallbackStreamBuf.h:29