diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-25 16:52:48 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-25 17:04:01 -0300 |
commit | ecc97184c0025d701ce7789e61ee55b84c29b942 (patch) | |
tree | 5ed9dea78fd8d024cb11798c83462c1edb5d5039 /cppgenerator.h | |
parent | b973238682789a8f6dc68ec824df8c8e14be0ce9 (diff) | |
parent | 32ec53b32affed4707712f33cd6a370ecc62ad7f (diff) |
Merged with multipleinheritance branch
Diffstat (limited to 'cppgenerator.h')
-rw-r--r-- | cppgenerator.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cppgenerator.h b/cppgenerator.h index 237dc68b7..a0e001f2f 100644 --- a/cppgenerator.h +++ b/cppgenerator.h @@ -127,6 +127,20 @@ private: void writeFlagsUnaryOperator(QTextStream& s, const AbstractMetaEnum* cppEnum, QString pyOpName, QString cppOpName, bool boolResult = false); + /// Writes the function that registers the multiple inheritance information for the classes that need it. + void writeMultipleInheritanceInitializerFunction(QTextStream& s, const AbstractMetaClass* metaClass); + + /** + * Returns the multiple inheritance initializer function for the given class. + * \param metaClass the class for whom the function name must be generated. + * \return name of the multiple inheritance information initializer function or + * an empty string if there is no multiple inheritance in its ancestry. + */ + 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 |