Version: 9.15.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()

PyObject* SALOME::AutoPyRef::get ( )

References _pyobj.

Referenced by SALOME_PyNode.BigObjectOnDiskBase::__float__(), SALOME_PyNode.BigObjectOnDiskListElement::__getitem__(), SALOME_PyNode.BigObjectOnDiskBase::__int__(), SALOME_PyNode.BigObjectOnDiskListElement::__len__(), SALOME_PyNode.BigObjectOnDiskBase::__str__(), KERNEL_PY.salome_notebook.NoteBook::check(), SALOMESDS::Sha1Keeper::checkSame(), SALOME_ContainerHelper.ScriptInfoDeco::code(), SALOME_ContainerHelper.ScriptExecInfoDeco::CPUMemDuringExec(), SALOME_ContainerHelper.ScriptExecInfoDeco::endExecTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::endInputTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::endOutputTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::execTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::freestyle(), SALOME_ContainerHelper.ScriptExecInfoDeco::fullExecTime(), KERNEL_PY.salome_notebook.NoteBook::get(), SALOMESDS::DataScopeServerBase::getValueOfVarWithTypeDict(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputHDDMem(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputMem(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputReadHDDSize(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputReadHDDSizeRepr(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputReadHDDSpeed(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputReadHDDSpeedRepr(), SALOME_ContainerHelper.ScriptExecInfoDeco::measureTimeResolution(), SALOME_ContainerHelper.ScriptInfoDeco::nodeName(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputHDDMem(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputMem(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputWriteHDDSize(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputWriteHDDSizeRepr(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputWriteHDDSpeed(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputWriteHDDSpeedRepr(), KERNEL_PY.salome_notebook.NoteBook::setAs(), SALOME_ContainerHelper.ScriptExecInfoDeco::startExecTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::startInputTime(), and SALOME_ContainerHelper.ScriptExecInfoDeco::startOutputTime().

◆ 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