clang API Documentation

Public Member Functions | Protected Member Functions
clang::IdentifierIterator Class Reference

An iterator that walks over all of the known identifiers in the lookup table. More...

#include <IdentifierTable.h>

Inheritance diagram for clang::IdentifierIterator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~IdentifierIterator ()
virtual StringRef Next ()=0
 Retrieve the next string in the identifier table and advances the iterator for the following string.

Protected Member Functions

 IdentifierIterator ()

Detailed 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 Next() provides dereference, advance, and end-of-sequence checking in a single operation. Subclasses of this iterator type will provide the actual functionality.

Definition at line 354 of file IdentifierTable.h.


Constructor & Destructor Documentation

clang::IdentifierIterator::IdentifierIterator ( ) [inline, protected]

Definition at line 360 of file IdentifierTable.h.

Definition at line 55 of file IdentifierTable.cpp.


Member Function Documentation

virtual StringRef clang::IdentifierIterator::Next ( ) [pure virtual]

Retrieve the next string in the identifier table and advances the iterator for the following string.

Returns:
The next string in the identifier table. If there is no such string, returns an empty StringRef.

Implemented in clang::ASTIdentifierIterator.


The documentation for this class was generated from the following files: