clang API Documentation

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

Class that performs name lookup into a DeclContext stored in an AST file. More...

#include <ASTReaderInternals.h>

List of all members.

Classes

struct  DeclNameKey
 Special internal key for declaration names. The hash table creates keys for comparison; we do not create a DeclarationName for the internal key to avoid deserializing types. More...

Public Types

typedef llvm::support::ulittle32_t LE32DeclID
 Pair of begin/end iterators for DeclIDs.
typedef std::pair< LE32DeclID
*, LE32DeclID * > 
data_type
typedef DeclarationName external_key_type
typedef DeclNameKey internal_key_type

Public Member Functions

 ASTDeclContextNameLookupTrait (ASTReader &Reader, ModuleFile &F)
unsigned ComputeHash (const DeclNameKey &Key) const
internal_key_type GetInternalKey (const external_key_type &Name) const
internal_key_type ReadKey (const unsigned char *d, unsigned)
data_type ReadData (internal_key_type, const unsigned char *d, unsigned DataLen)

Static Public Member Functions

static bool EqualKey (const internal_key_type &a, const internal_key_type &b)
static std::pair< unsigned,
unsigned > 
ReadKeyDataLength (const unsigned char *&d)

Detailed Description

Class that performs name lookup into a DeclContext stored in an AST file.

Definition at line 36 of file ASTReaderInternals.h.


Member Typedef Documentation

Definition at line 46 of file ASTReaderInternals.h.

Definition at line 57 of file ASTReaderInternals.h.

Definition at line 58 of file ASTReaderInternals.h.

Pair of begin/end iterators for DeclIDs.

Note that these declaration IDs are local to the module that contains this particular lookup t

Definition at line 45 of file ASTReaderInternals.h.


Constructor & Destructor Documentation

clang::serialization::reader::ASTDeclContextNameLookupTrait::ASTDeclContextNameLookupTrait ( ASTReader Reader,
ModuleFile F 
) [inline, explicit]

Definition at line 60 of file ASTReaderInternals.h.


Member Function Documentation

unsigned ASTDeclContextNameLookupTrait::ComputeHash ( const DeclNameKey Key) const
static bool clang::serialization::reader::ASTDeclContextNameLookupTrait::EqualKey ( const internal_key_type a,
const internal_key_type b 
) [inline, static]
ASTDeclContextNameLookupTrait::internal_key_type ASTDeclContextNameLookupTrait::GetInternalKey ( const external_key_type Name) const
ASTDeclContextNameLookupTrait::data_type ASTDeclContextNameLookupTrait::ReadData ( internal_key_type  ,
const unsigned char *  d,
unsigned  DataLen 
)

Definition at line 710 of file ASTReader.cpp.

References clang::io::ReadUnalignedLE16().

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

Definition at line 668 of file ASTReader.cpp.

References clang::io::ReadUnalignedLE16().


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