clang  3.7.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::serialization::reader::ASTDeclContextNameLookupTrait Class Reference

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

#include <ASTReaderInternals.h>

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. More...
 
typedef std::pair< LE32DeclID
*, LE32DeclID * > 
data_type
 
typedef unsigned hash_value_type
 
typedef unsigned offset_type
 
typedef DeclarationName external_key_type
 
typedef DeclNameKey internal_key_type
 

Public Member Functions

 ASTDeclContextNameLookupTrait (ASTReader &Reader, ModuleFile &F)
 
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 hash_value_type ComputeHash (const DeclNameKey &Key)
 
static internal_key_type GetInternalKey (const external_key_type &Name)
 
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 37 of file ASTReaderInternals.h.

Member Typedef Documentation

Definition at line 47 of file ASTReaderInternals.h.

Definition at line 60 of file ASTReaderInternals.h.

Definition at line 48 of file ASTReaderInternals.h.

Definition at line 61 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 46 of file ASTReaderInternals.h.

Definition at line 49 of file ASTReaderInternals.h.

Constructor & Destructor Documentation

clang::serialization::reader::ASTDeclContextNameLookupTrait::ASTDeclContextNameLookupTrait ( ASTReader Reader,
ModuleFile F 
)
inlineexplicit

Definition at line 63 of file ASTReaderInternals.h.

Member Function Documentation

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

Definition at line 952 of file ASTReader.cpp.

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 907 of file ASTReader.cpp.


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