OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
CPythonObject Class Reference

#include "CPythonObject.h"

Inheritance diagram for CPythonObject:
CPythonObjectBorrowed CPythonObjectNew

Public Member Functions

 CPythonObject (PyObject *ref)
 
Py_ssize_t getRefCount () const
 
CPythonObjectoperator= (const CPythonObject &other)=delete
 
 CPythonObject (const CPythonObject &other)=delete
 
CPythonObjectoperator= (CPythonObject &&other) noexcept
 
 CPythonObject (CPythonObject &&other) noexcept
 
void reset (CPythonObject &&other)
 
 operator PyObject * () const
 
bool ReferenceIsSet ()
 
void DropOwnership ()
 
void FreePythonObject ()
 
 ~CPythonObject ()
 

Protected Attributes

PyObject * _ref
 

Constructor & Destructor Documentation

◆ CPythonObject() [1/3]

CPythonObject::CPythonObject ( PyObject * ref)
inline

◆ CPythonObject() [2/3]

CPythonObject::CPythonObject ( const CPythonObject & other)
delete

◆ CPythonObject() [3/3]

CPythonObject::CPythonObject ( CPythonObject && other)
inlinenoexcept

◆ ~CPythonObject()

CPythonObject::~CPythonObject ( )
inline

Member Function Documentation

◆ DropOwnership()

void CPythonObject::DropOwnership ( )
inline

◆ FreePythonObject()

void CPythonObject::FreePythonObject ( )
inline

◆ getRefCount()

Py_ssize_t CPythonObject::getRefCount ( ) const
inline

◆ operator PyObject *()

CPythonObject::operator PyObject * ( ) const
inline

◆ operator=() [1/2]

CPythonObject & CPythonObject::operator= ( const CPythonObject & other)
delete

◆ operator=() [2/2]

CPythonObject & CPythonObject::operator= ( CPythonObject && other)
inlinenoexcept

◆ ReferenceIsSet()

bool CPythonObject::ReferenceIsSet ( )
inline

◆ reset()

void CPythonObject::reset ( CPythonObject && other)
inline

Member Data Documentation

◆ _ref

PyObject* CPythonObject::_ref
protected

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