aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-16 00:19:04 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-18 09:22:51 -0300
commit88f1e3aa4f3677687355813f4ff326d273a17e48 (patch)
tree0612d934d305708084826c0cc498f8a1712d9851 /cppgenerator.h
parent2807ddf87ab5d85698011a4260c833c7fc577fe2 (diff)
Added the getAncestorMultipleInheritance method to CppGenerator,
it returns a QStringList with the names of all classes that are multiple parents for the current class or any of its ancestors. The purpose is to get a list of all possible casts that could change the memory address of the base pointer of a class.
Diffstat (limited to 'cppgenerator.h')
-rw-r--r--cppgenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cppgenerator.h b/cppgenerator.h
index 87df8e4a1..4e7709da6 100644
--- a/cppgenerator.h
+++ b/cppgenerator.h
@@ -121,6 +121,9 @@ private:
*/
QString multipleInheritanceInitializerFunctionName(const AbstractMetaClass* metaClass);
+ /// Returns a list of all classes to which the given class could be casted.
+ QStringList getAncestorMultipleInheritance(const AbstractMetaClass* metaClass);
+
/// Returns true if the given class supports the python sequence protocol
bool supportsSequenceProtocol(const AbstractMetaClass* metaClass);
// Maps special function names to function parameters and return types