diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-20 13:28:26 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-20 14:37:24 -0300 |
commit | d4325c727704f294019a759d20a4fda57bb4d5dc (patch) | |
tree | 559d064e1cca18dad71ec6faef6eea1784dc1ae7 /overloaddata.h | |
parent | 0a7e1e307a3686c7e12d422913f08c8790293f61 (diff) |
Added methods to OverloadData:
* OverloadData* headOverloadData() const;
Return the root OverloadData object for the current OverloadData.
* QStringList returnTypes() const;
Returns a list of the possible return types for the current OverloadData.
* bool hasNonVoidReturnType() const;
Returns true if any of the overloads for the current OverloadData has a
return type different from void.
Diffstat (limited to 'overloaddata.h')
-rw-r--r-- | overloaddata.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/overloaddata.h b/overloaddata.h index 9d720dba2..4e01e3d50 100644 --- a/overloaddata.h +++ b/overloaddata.h @@ -44,11 +44,22 @@ public: int argPos() const { return m_argPos; } const AbstractMetaType* argType() const { return m_argType; } + + /// Returns a string list containing all the possible return types (including void) for the current OverloadData. + QStringList returnTypes() const; + + /// Returns true if any of the overloads for the current OverloadData has a return type different from void. + bool hasNonVoidReturnType() const; + const AbstractMetaFunction* referenceFunction() const; const AbstractMetaArgument* argument(const AbstractMetaFunction* func) const; OverloadDataList overloadDataOnPosition(int argPos) const; bool isHeadOverloadData() const { return this == m_headOverloadData; } + + /// Returns the root OverloadData object that represents all the overloads. + OverloadData* headOverloadData() const { return m_headOverloadData; } + bool hasDefaultValue() const; bool nextArgumentHasDefaultValue() const; /// Returns the nearest occurrence, including this instance, of an argument with a default value. |