OpenLexocad
27.0
|
#include <PyExport.h>
Public Member Functions | |
PyHandle (HandledType *ToHandel=0L) | |
PyHandle (const PyHandle< HandledType > &ToHandel) | |
Copy constructor. More... | |
~PyHandle () | |
PyHandle< HandledType > & | operator= (HandledType *other) |
PyHandle< HandledType > & | operator= (const PyHandle< HandledType > &other) |
HandledType & | operator * () |
derefrence operators More... | |
HandledType * | operator-> () |
derefrence operators More... | |
const HandledType & | operator * () const |
derefrence operators More... | |
const HandledType * | operator-> () const |
derefrence operators More... | |
bool | operator< (const PyHandle< HandledType > &other) const |
bool | operator== (const PyHandle< HandledType > &other) const |
equal operator More... | |
PyObject * | GetPyObject (void) |
returns the type as PyObject More... | |
bool | IsValid (void) const |
Test if it handels something. More... | |
bool | IsNull (void) const |
Test if it not handels something. More... | |
Python Object handle class Using pointers on classes derived from PyObjectBase would be potentionaly dangerous because you would have to take care of the referenc counting of python by your self. There fore this class was designd. It takes care of references and as long as a object of this class exists the handled class get not destructed. That means a PyObjectBase derived object you can only destruct by destructing all FCPyHandle and all python references on it!
|
inline |
pointer and default constructor the good way would be not using pointer instead using a overwriten new operator in the HandledType class! But is not easy to inforce!
|
inline |
Copy constructor.
|
inline |
destructor Release the referenc count which cause, if was the last one, the referenced object to destruct!
|
inline |
returns the type as PyObject
|
inline |
Test if it not handels something.
|
inline |
Test if it handels something.
|
inline |
derefrence operators
|
inline |
derefrence operators
|
inline |
derefrence operators
|
inline |
derefrence operators
|
inline |
lower operator needed for sorting in maps and sets
|
inline |
|
inline |
|
inline |
equal operator