summaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper_p.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-03-29 18:13:45 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-03-30 17:46:16 -0300
commit1da0a532711cfd3165d5c3d2723fa715c4e31175 (patch)
treef2cc04c3cf37be68350d7cff6944c6fa14e89df5 /libshiboken/basewrapper_p.h
parentc0c093d485798aec96ea7a7230c0639797cd9830 (diff)
downloadshiboken-1da0a532711cfd3165d5c3d2723fa715c4e31175.tar.gz
shiboken-1da0a532711cfd3165d5c3d2723fa715c4e31175.tar.xz
shiboken-1da0a532711cfd3165d5c3d2723fa715c4e31175.zip
Class Shiboken::ParentInfo doesn't need to be exported.
It was moved to basewrapper private header.
Diffstat (limited to 'libshiboken/basewrapper_p.h')
-rw-r--r--libshiboken/basewrapper_p.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libshiboken/basewrapper_p.h b/libshiboken/basewrapper_p.h
index 555f40d4..a1c69581 100644
--- a/libshiboken/basewrapper_p.h
+++ b/libshiboken/basewrapper_p.h
@@ -134,6 +134,22 @@ inline std::list<SbkBaseWrapperType*> getCppBaseClasses(PyTypeObject* baseType)
return visitor.bases();
}
+struct SbkBaseWrapper;
+
+/// Linked list of SbkBaseWrapper pointers
+typedef std::list<SbkBaseWrapper*> ChildrenList;
+
+/// Struct used to store information about object parent and children.
+struct ParentInfo
+{
+ /// Default ctor.
+ ParentInfo() : parent(0) {}
+ /// Pointer to parent object.
+ SbkBaseWrapper* parent;
+ /// List of object children.
+ ChildrenList children;
+};
+
}
#endif