generator.h   generator.h 
skipping to change at line 240 skipping to change at line 240
/// Check if type is a pointer. /// Check if type is a pointer.
static bool isPointer(const AbstractMetaType* type); static bool isPointer(const AbstractMetaType* type);
/// Tells if the type or class is an Object (or QObject) Type. /// Tells if the type or class is an Object (or QObject) Type.
static bool isObjectType(const TypeEntry* type); static bool isObjectType(const TypeEntry* type);
static bool isObjectType(const ComplexTypeEntry* type); static bool isObjectType(const ComplexTypeEntry* type);
static bool isObjectType(const AbstractMetaType* metaType); static bool isObjectType(const AbstractMetaType* metaType);
static bool isObjectType(const AbstractMetaClass* metaClass); static bool isObjectType(const AbstractMetaClass* metaClass);
/// Returns true if the type is a C string (const char*).
static bool isCString(const AbstractMetaType* type);
/// Returns true if the type is a void pointer.
static bool isVoidPointer(const AbstractMetaType* type);
// Returns the full name of the type.
QString getFullTypeName(const TypeEntry* type) const;
QString getFullTypeName(const AbstractMetaType* type) const;
QString getFullTypeName(const AbstractMetaClass* metaClass) const;
/**
* Returns the full qualified C++ name for an AbstractMetaType, but re
moving modifiers
* as 'const', '&', and '*' (except if the class is not derived from a
template).
* This is useful for instantiated templates.
*/
QString getFullTypeNameWithoutModifiers(const AbstractMetaType* type) c
onst;
/** /**
* Tries to build a minimal constructor for the type. * Tries to build a minimal constructor for the type.
* It will check first for a user defined default constructor. * It will check first for a user defined default constructor.
* Returns a null string if it fails. * Returns a null string if it fails.
*/ */
QString minimalConstructor(const TypeEntry* type) const; QString minimalConstructor(const TypeEntry* type) const;
QString minimalConstructor(const AbstractMetaType* type) const; QString minimalConstructor(const AbstractMetaType* type) const;
QString minimalConstructor(const AbstractMetaClass* metaClass) const; QString minimalConstructor(const AbstractMetaClass* metaClass) const;
protected: protected:
/** /**
skipping to change at line 288 skipping to change at line 305
QList<const AbstractMetaType*> instantiatedContainers() const; QList<const AbstractMetaType*> instantiatedContainers() const;
static QString getSimplifiedContainerTypeName(const AbstractMetaType* t ype); static QString getSimplifiedContainerTypeName(const AbstractMetaType* t ype);
void addInstantiatedContainers(const AbstractMetaType* type); void addInstantiatedContainers(const AbstractMetaType* type);
private: private:
struct GeneratorPrivate; struct GeneratorPrivate;
GeneratorPrivate* m_d; GeneratorPrivate* m_d;
void collectInstantiatedContainers(const AbstractMetaFunction* func); void collectInstantiatedContainers(const AbstractMetaFunction* func);
void collectInstantiatedContainers(const AbstractMetaClass* metaClass);
void collectInstantiatedContainers(); void collectInstantiatedContainers();
}; };
Q_DECLARE_OPERATORS_FOR_FLAGS(Generator::Options) Q_DECLARE_OPERATORS_FOR_FLAGS(Generator::Options)
typedef QLinkedList<Generator*> GeneratorList; typedef QLinkedList<Generator*> GeneratorList;
/** /**
* Utility class to store the identation level, use it in a QTextStream. * Utility class to store the identation level, use it in a QTextStream.
*/ */
class GENRUNNER_API Indentor class GENRUNNER_API Indentor
 End of changes. 2 change blocks. 
0 lines changed or deleted 21 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/