summaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'libshiboken/basewrapper_p.h')
-rw-r--r--libshiboken/basewrapper_p.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/libshiboken/basewrapper_p.h b/libshiboken/basewrapper_p.h
index 34a3ea6d..6b8b9ab3 100644
--- a/libshiboken/basewrapper_p.h
+++ b/libshiboken/basewrapper_p.h
@@ -28,6 +28,7 @@
#include <map>
struct SbkObject;
+struct SbkBaseWrapperType;
namespace Shiboken
{
@@ -88,8 +89,6 @@ namespace Shiboken
**/
std::list<SbkObject*> splitPyObject(PyObject* pyObj);
-struct SbkBaseWrapperType;
-
/**
* Visitor class used by walkOnClassHierarchy function.
*/
@@ -152,6 +151,16 @@ private:
PyTypeObject* m_desiredType;
};
+class DtorCallerVisitor : public HierarchyVisitor
+{
+public:
+ DtorCallerVisitor(SbkObject* pyObj) : m_count(0), m_pyObj(pyObj) {}
+ void visit(SbkBaseWrapperType* node);
+private:
+ int m_count;
+ SbkObject* m_pyObj;
+};
+
/// \internal Internal function used to walk on classes inheritance trees.
/**
* Walk on class hierarchy using a DFS algorithm.