diff options
Diffstat (limited to 'generator.h')
-rw-r--r-- | generator.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/generator.h b/generator.h index d8f600cbf..7423b25b5 100644 --- a/generator.h +++ b/generator.h @@ -223,6 +223,18 @@ public: /// returns the code snips of a function CodeSnipList getCodeSnips(const AbstractMetaFunction *func); + /** + * Retrieves a list of constructors used in implicit conversions + * available on the given type. The TypeEntry must be a value-type + * or else it will return an empty list. + * \param type a TypeEntry that is expected to be a value-type + * \return a list of constructors that could be used as implicit converters + */ + AbstractMetaFunctionList implicitConversions(const TypeEntry* type) const; + + /// Convenience function for implicitConversions(const TypeEntry* type). + AbstractMetaFunctionList implicitConversions(const AbstractMetaType* metaType) const; + protected: QString m_packageName; |