From 456d418b2431007c0b850ea7ceb4b3deac1efcde Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 5 Jun 2009 12:08:36 +0200 Subject: Introduced iterators for the c++ literals. --- src/shared/cplusplus/Control.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/shared/cplusplus/Control.h') diff --git a/src/shared/cplusplus/Control.h b/src/shared/cplusplus/Control.h index b00b7b080b..b98da650cc 100644 --- a/src/shared/cplusplus/Control.h +++ b/src/shared/cplusplus/Control.h @@ -150,11 +150,30 @@ public: Identifier *findOrInsertIdentifier(const char *chars, unsigned size); Identifier *findOrInsertIdentifier(const char *chars); + /* + LiteralTable identifiers; + LiteralTable stringLiterals; + LiteralTable numericLiterals; + LiteralTable fileNames; + */ + typedef const Identifier *const *IdentifierIterator; + typedef const StringLiteral *const *StringLiteralIterator; + typedef const NumericLiteral *const *NumericLiteralIterator; + typedef const StringLiteral *const *FileNameIterator; IdentifierIterator firstIdentifier() const; IdentifierIterator lastIdentifier() const; + StringLiteralIterator firstStringLiteral() const; + StringLiteralIterator lastStringLiteral() const; + + NumericLiteralIterator firstNumericLiteral() const; + NumericLiteralIterator lastNumericLiteral() const; + + FileNameIterator firstFileName() const; + FileNameIterator lastFileName() const; + StringLiteral *findOrInsertStringLiteral(const char *chars, unsigned size); StringLiteral *findOrInsertStringLiteral(const char *chars); -- cgit v1.2.1