diff options
author | Roberto Raggi <[email protected]> | 2010-05-11 11:26:27 +0200 |
---|---|---|
committer | Roberto Raggi <[email protected]> | 2010-05-11 11:27:10 +0200 |
commit | 17fd33bdabe4b7c72b1f268767968dd945089335 (patch) | |
tree | 708e04d2717ce4cf51a20f71030f83a6788f05f2 /src/libs/cplusplus/LookupItem.h | |
parent | 37fde0c9d4791a2b39da03d66bad3f6dba1a185d (diff) |
Store the declaration (if any) associated with the LookupItem.
Diffstat (limited to 'src/libs/cplusplus/LookupItem.h')
-rw-r--r-- | src/libs/cplusplus/LookupItem.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/libs/cplusplus/LookupItem.h b/src/libs/cplusplus/LookupItem.h index fab6c61a9c5..6254fbf82bc 100644 --- a/src/libs/cplusplus/LookupItem.h +++ b/src/libs/cplusplus/LookupItem.h @@ -38,21 +38,37 @@ namespace CPlusPlus { class CPLUSPLUS_EXPORT LookupItem { public: + /// Constructs an null LookupItem. LookupItem(); - LookupItem(const FullySpecifiedType &type, Symbol *lastVisibleSymbol); + /// Contructs a LookupItem with the given \a type, \a lastVisibleSymbol and \a declaration. + LookupItem(const FullySpecifiedType &type, Symbol *lastVisibleSymbol, Symbol *declaration = 0); + + /// Returns this item's type. FullySpecifiedType type() const; + + /// Sets this item's type. void setType(const FullySpecifiedType &type); + /// Returns the last visible symbol. Symbol *lastVisibleSymbol() const; + + /// Sets the last visible symbol. void setLastVisibleSymbol(Symbol *symbol); + /// Returns this item's declaration. + Symbol *declaration() const; + + /// Sets this item's declaration. + void setDeclaration(Symbol *declaration); + bool operator == (const LookupItem &other) const; bool operator != (const LookupItem &other) const; private: FullySpecifiedType _type; Symbol *_lastVisibleSymbol; + Symbol *_declaration; }; uint qHash(const CPlusPlus::LookupItem &result); |