From 4545d7fc24b016d6456da40298a2cf4581e38ec1 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Fri, 30 Oct 2009 19:49:29 -0300 Subject: added Generator::implicitConversions(type) method that returns the constructors for implicit conversions for the given type, which should be a value-type Reviewed by Hugo Parente --- generator.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'generator.h') 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; -- cgit v1.2.3