clang API Documentation

Public Member Functions
clang::IdentifierInfoLookup Class Reference

Provides lookups to, and iteration over, IdentiferInfo objects. More...

#include <IdentifierTable.h>

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

List of all members.

Public Member Functions

virtual ~IdentifierInfoLookup ()
virtual IdentifierInfoget (StringRef Name)=0
 Return the IdentifierInfo for the specified named identifier.
virtual IdentifierIteratorgetIdentifiers ()
 Retrieve an iterator into the set of all identifiers known to this identifier lookup source.

Detailed Description

Provides lookups to, and iteration over, IdentiferInfo objects.

Definition at line 374 of file IdentifierTable.h.


Constructor & Destructor Documentation

Definition at line 57 of file IdentifierTable.cpp.


Member Function Documentation

virtual IdentifierInfo* clang::IdentifierInfoLookup::get ( StringRef  Name) [pure virtual]

Return the IdentifierInfo for the specified named identifier.

Unlike the version in IdentifierTable, this returns a pointer instead of a reference. If the pointer is null then the IdentifierInfo cannot be found.

Implemented in clang::ASTReader, and clang::PTHManager.

Referenced by clang::IdentifierTable::get().

Retrieve an iterator into the set of all identifiers known to this identifier lookup source.

This routine provides access to all of the identifiers known to the identifier lookup, allowing access to the contents of the identifiers without introducing the overhead of constructing IdentifierInfo objects for each.

Returns:
A new iterator into the set of known identifiers. The caller is responsible for deleting this iterator.

Reimplemented in clang::ASTReader.

Definition at line 69 of file IdentifierTable.cpp.


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