From 2f99b5b56d565842ddcc70d8598598b4f188d21c Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 11 Dec 2021 08:33:50 +0100 Subject: [PATCH] Base: [skip ci] allow to access the twin pointer of a PyObjectBase --- src/Base/PyObjectBase.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Base/PyObjectBase.h b/src/Base/PyObjectBase.h index 611e1a395e..89e794fae7 100644 --- a/src/Base/PyObjectBase.h +++ b/src/Base/PyObjectBase.h @@ -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