summaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper_p.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-11-10 11:42:46 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-11-10 15:36:29 -0200
commit9016e6ef09c19406d2e57066966eae4d54010728 (patch)
treebb5b73b32c1334ff1671ef0b1bf7681d510562fe /libshiboken/basewrapper_p.h
parentb9ad071fcb2a1fa2f0191815ed7b1f7573e8f01a (diff)
downloadshiboken-9016e6ef09c19406d2e57066966eae4d54010728.tar.gz
shiboken-9016e6ef09c19406d2e57066966eae4d54010728.tar.xz
shiboken-9016e6ef09c19406d2e57066966eae4d54010728.zip
SbkBaseWrapperType and some other functions used by Python C-API moved outside C++ namespaces.
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.