clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::serialization::reader::ASTIdentifierLookupTrait Class Reference

Class that performs lookup for an identifier stored in an AST file. More...

#include <ASTReaderInternals.h>

List of all members.

Public Types

typedef IdentifierInfodata_type
typedef const std::pair< const
char *, unsigned > 
external_key_type
typedef external_key_type internal_key_type

Public Member Functions

 ASTIdentifierLookupTrait (ASTReader &Reader, ModuleFile &F, IdentifierInfo *II=0)
IdentifierInfoReadData (const internal_key_type &k, const unsigned char *d, unsigned DataLen)
ASTReadergetReader () const

Static Public Member Functions

static bool EqualKey (const internal_key_type &a, const internal_key_type &b)
static unsigned ComputeHash (const internal_key_type &a)
static const internal_key_typeGetInternalKey (const external_key_type &x)
static const external_key_typeGetExternalKey (const internal_key_type &x)
static std::pair< unsigned,
unsigned > 
ReadKeyDataLength (const unsigned char *&d)
static std::pair< const char
*, unsigned > 
ReadKey (const unsigned char *d, unsigned n)

Detailed Description

Class that performs lookup for an identifier stored in an AST file.

Definition at line 81 of file ASTReaderInternals.h.


Member Typedef Documentation

Definition at line 91 of file ASTReaderInternals.h.

typedef const std::pair<const char*, unsigned> clang::serialization::reader::ASTIdentifierLookupTrait::external_key_type

Definition at line 93 of file ASTReaderInternals.h.

Definition at line 95 of file ASTReaderInternals.h.


Constructor & Destructor Documentation

clang::serialization::reader::ASTIdentifierLookupTrait::ASTIdentifierLookupTrait ( ASTReader Reader,
ModuleFile F,
IdentifierInfo II = 0 
) [inline]

Definition at line 97 of file ASTReaderInternals.h.


Member Function Documentation

unsigned ASTIdentifierLookupTrait::ComputeHash ( const internal_key_type a) [static]

Definition at line 481 of file ASTReader.cpp.

static bool clang::serialization::reader::ASTIdentifierLookupTrait::EqualKey ( const internal_key_type a,
const internal_key_type b 
) [inline, static]

Definition at line 101 of file ASTReaderInternals.h.

static const external_key_type& clang::serialization::reader::ASTIdentifierLookupTrait::GetExternalKey ( const internal_key_type x) [inline, static]

Definition at line 115 of file ASTReaderInternals.h.

static const internal_key_type& clang::serialization::reader::ASTIdentifierLookupTrait::GetInternalKey ( const external_key_type x) [inline, static]

Definition at line 111 of file ASTReaderInternals.h.

ASTReader& clang::serialization::reader::ASTIdentifierLookupTrait::getReader ( ) const [inline]

Definition at line 127 of file ASTReaderInternals.h.

IdentifierInfo * ASTIdentifierLookupTrait::ReadData ( const internal_key_type k,
const unsigned char *  d,
unsigned  DataLen 
)
std::pair< const char *, unsigned > ASTIdentifierLookupTrait::ReadKey ( const unsigned char *  d,
unsigned  n 
) [static]

Definition at line 494 of file ASTReader.cpp.

std::pair< unsigned, unsigned > ASTIdentifierLookupTrait::ReadKeyDataLength ( const unsigned char *&  d) [static]

Definition at line 486 of file ASTReader.cpp.

References clang::io::ReadUnalignedLE16().


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