Base: [skip ci] allow to access the twin pointer of a PyObjectBase

This commit is contained in:
wmayer
2021-12-11 08:33:50 +01:00
parent bfc8111d19
commit 2f99b5b56d

View File

@@ -220,6 +220,11 @@ public:
/// decref method wrapper (see python extending manual)
PyObjectBase* DecRef() {Py_DECREF(this);return this;}
/// Get the pointer of the twin object
void* getTwinPointer() const {
return _pcTwinPointer;
}
/** GetAttribute implementation
* This method implements the retrieval of object attributes.
* If you want to implement attributes in your class, reimplement