Version: 9.12.0
SALOME::AutoPyRef Class Reference

#include <SALOMESDS_Auto.hxx>

Public Member Functions

 AutoPyRef (PyObject *pyobj=nullptr)
 
 ~AutoPyRef ()
 
 AutoPyRef (const AutoPyRef &other)
 
 AutoPyRef (AutoPyRef &&other)
 
AutoPyRefoperator= (const AutoPyRef &other)
 
AutoPyRefoperator= (AutoPyRef &&other)
 
 operator PyObject * ()
 
void set (PyObject *pyobj)
 
PyObject * get ()
 
bool isNull () const
 
PyObject * retn ()
 

Private Member Functions

void release ()
 

Private Attributes

PyObject * _pyobj
 

Constructor & Destructor Documentation

◆ AutoPyRef() [1/3]

SALOME::AutoPyRef::AutoPyRef ( PyObject *  pyobj = nullptr)

◆ ~AutoPyRef()

SALOME::AutoPyRef::~AutoPyRef ( )

References release().

◆ AutoPyRef() [2/3]

SALOME::AutoPyRef::AutoPyRef ( const AutoPyRef other)

References _pyobj.

◆ AutoPyRef() [3/3]

SALOME::AutoPyRef::AutoPyRef ( AutoPyRef &&  other)

Member Function Documentation

◆ get()

◆ isNull()

◆ operator PyObject *()

SALOME::AutoPyRef::operator PyObject * ( )

References _pyobj.

◆ operator=() [1/2]

AutoPyRef& SALOME::AutoPyRef::operator= ( AutoPyRef &&  other)

References _pyobj, and release().

◆ operator=() [2/2]

AutoPyRef& SALOME::AutoPyRef::operator= ( const AutoPyRef other)

References _pyobj, and release().

◆ release()

void SALOME::AutoPyRef::release ( )
private

References _pyobj.

Referenced by operator=(), set(), and ~AutoPyRef().

◆ retn()

PyObject* SALOME::AutoPyRef::retn ( )

References _pyobj.

◆ set()

void SALOME::AutoPyRef::set ( PyObject *  pyobj)

References _pyobj, and release().

Field Documentation

◆ _pyobj

PyObject* SALOME::AutoPyRef::_pyobj
private