class IdentifierIterator
Declaration
class IdentifierIterator { /* full declaration omitted */ };
Description
An iterator that walks over all of the known identifiers in the lookup table. Since this iterator uses an abstract interface via virtual functions, it uses an object-oriented interface rather than the more standard C++ STL iterator interface. In this OO-style iteration, the single function \c Next() provides dereference, advance, and end-of-sequence checking in a single operation. Subclasses of this iterator type will provide the actual functionality.
Declared at: clang/include/clang/Basic/IdentifierTable.h:515
Method Overview
- protected IdentifierIterator()
- public IdentifierIterator(const clang::IdentifierIterator &)
- public virtual llvm::StringRef Next()
- public virtual ~IdentifierIterator()
Methods
¶IdentifierIterator()
IdentifierIterator()
Declared at: clang/include/clang/Basic/IdentifierTable.h:517
¶IdentifierIterator(
const clang::IdentifierIterator&)
IdentifierIterator(
const clang::IdentifierIterator&)
Declared at: clang/include/clang/Basic/IdentifierTable.h:520
Parameters
- const clang::IdentifierIterator&
¶virtual llvm::StringRef Next()
virtual llvm::StringRef Next()
Description
Retrieve the next string in the identifier table and advances the iterator for the following string.
Declared at: clang/include/clang/Basic/IdentifierTable.h:530
Returns
The next string in the identifier table. If there is no such string, returns an empty \c StringRef.
¶virtual ~IdentifierIterator()
virtual ~IdentifierIterator()
Declared at: clang/include/clang/Basic/IdentifierTable.h:523