clang  3.9.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | 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>

Collaboration diagram for clang::serialization::reader::ASTDeclContextNameLookupTrait:
[legend]

Classes

struct  data_type_builder
 

Public Types

typedef llvm::SmallVector
< DeclID, 4 > 
data_type
 The lookup result is a list of global declaration IDs. More...
 
typedef unsigned hash_value_type
 
typedef unsigned offset_type
 
typedef ModuleFilefile_type
 
typedef DeclarationName external_key_type
 
typedef DeclarationNameKey internal_key_type
 

Public Member Functions

 ASTDeclContextNameLookupTrait (ASTReader &Reader, ModuleFile &F)
 
internal_key_type ReadKey (const unsigned char *d, unsigned)
 
void ReadDataInto (internal_key_type, const unsigned char *d, unsigned DataLen, data_type_builder &Val)
 
file_type ReadFileRef (const unsigned char *&d)
 

Static Public Member Functions

static bool EqualKey (const internal_key_type &a, const internal_key_type &b)
 
static hash_value_type ComputeHash (const internal_key_type &Key)
 
static internal_key_type GetInternalKey (const external_key_type &Name)
 
static std::pair< unsigned,
unsigned
ReadKeyDataLength (const unsigned char *&d)
 
static void MergeDataInto (const data_type &From, data_type_builder &To)
 

Static Public Attributes

static const int MaxTables = 4
 

Detailed Description

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

Definition at line 41 of file ASTReaderInternals.h.

Member Typedef Documentation

The lookup result is a list of global declaration IDs.

Definition at line 50 of file ASTReaderInternals.h.

Definition at line 79 of file ASTReaderInternals.h.

Definition at line 77 of file ASTReaderInternals.h.

Definition at line 75 of file ASTReaderInternals.h.

Definition at line 80 of file ASTReaderInternals.h.

Definition at line 76 of file ASTReaderInternals.h.

Constructor & Destructor Documentation

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

Definition at line 82 of file ASTReaderInternals.h.

Member Function Documentation

static hash_value_type clang::serialization::reader::ASTDeclContextNameLookupTrait::ComputeHash ( const internal_key_type Key)
inlinestatic
static bool clang::serialization::reader::ASTDeclContextNameLookupTrait::EqualKey ( const internal_key_type a,
const internal_key_type b 
)
inlinestatic

Definition at line 85 of file ASTReaderInternals.h.

static internal_key_type clang::serialization::reader::ASTDeclContextNameLookupTrait::GetInternalKey ( const external_key_type Name)
inlinestatic

Definition at line 92 of file ASTReaderInternals.h.

References clang::Name.

static void clang::serialization::reader::ASTDeclContextNameLookupTrait::MergeDataInto ( const data_type From,
data_type_builder To 
)
inlinestatic
void ASTDeclContextNameLookupTrait::ReadDataInto ( internal_key_type  ,
const unsigned char *  d,
unsigned  DataLen,
data_type_builder Val 
)
ModuleFile * ASTDeclContextNameLookupTrait::ReadFileRef ( const unsigned char *&  d)

Definition at line 925 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 932 of file ASTReader.cpp.

Member Data Documentation

const int clang::serialization::reader::ASTDeclContextNameLookupTrait::MaxTables = 4
static

Definition at line 47 of file ASTReaderInternals.h.


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