aboutsummaryrefslogtreecommitdiffstats
path: root/generator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-10-03 14:37:28 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-10-04 14:48:48 -0300
commit5f3ed94f7a83acf0fc7dfddf414a34121eabe58a (patch)
tree9c1dadf03a4768982e1540bbac7d7a8efa9305e3 /generator.h
parent44138ada64eb6f9175ea7bb8c05e38f9079fbf8b (diff)
Fixed minimalConstructor method for classes with template instantiations.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'generator.h')
-rw-r--r--generator.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/generator.h b/generator.h
index 484327d32..eeaa07e29 100644
--- a/generator.h
+++ b/generator.h
@@ -242,6 +242,18 @@ public:
/// 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 removing 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) const;
+
/**
* Tries to build a minimal constructor for the type.
* It will check first for a user defined default constructor.