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

Class that performs lookup for a selector's entries in the global method pool stored in an AST file. More...

#include <ASTReaderInternals.h>

Classes

struct  data_type
 

Public Types

typedef Selector external_key_type
 
typedef external_key_type internal_key_type
 
typedef unsigned hash_value_type
 
typedef unsigned offset_type
 

Public Member Functions

 ASTSelectorLookupTrait (ASTReader &Reader, ModuleFile &F)
 
internal_key_type ReadKey (const unsigned char *d, unsigned)
 
data_type ReadData (Selector, 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 (Selector Sel)
 
static const internal_key_typeGetInternalKey (const external_key_type &x)
 
static std::pair< unsigned,
unsigned
ReadKeyDataLength (const unsigned char *&d)
 

Detailed Description

Class that performs lookup for a selector's entries in the global method pool stored in an AST file.

Definition at line 197 of file ASTReaderInternals.h.

Member Typedef Documentation

Definition at line 212 of file ASTReaderInternals.h.

Definition at line 214 of file ASTReaderInternals.h.

Definition at line 213 of file ASTReaderInternals.h.

Definition at line 215 of file ASTReaderInternals.h.

Constructor & Destructor Documentation

clang::serialization::reader::ASTSelectorLookupTrait::ASTSelectorLookupTrait ( ASTReader Reader,
ModuleFile F 
)
inline

Definition at line 217 of file ASTReaderInternals.h.

Member Function Documentation

unsigned ASTSelectorLookupTrait::ComputeHash ( Selector  Sel)
static

Definition at line 667 of file ASTReader.cpp.

References clang::serialization::ComputeHash().

static bool clang::serialization::reader::ASTSelectorLookupTrait::EqualKey ( const internal_key_type a,
const internal_key_type b 
)
inlinestatic

Definition at line 220 of file ASTReaderInternals.h.

static const internal_key_type& clang::serialization::reader::ASTSelectorLookupTrait::GetInternalKey ( const external_key_type x)
inlinestatic

Definition at line 228 of file ASTReaderInternals.h.

ASTSelectorLookupTrait::data_type ASTSelectorLookupTrait::ReadData ( Selector  ,
const unsigned char *  d,
unsigned  DataLen 
)

Definition at line 702 of file ASTReader.cpp.

References I, and clang::Result.

ASTSelectorLookupTrait::internal_key_type ASTSelectorLookupTrait::ReadKey ( const unsigned char *  d,
unsigned   
)

Definition at line 681 of file ASTReader.cpp.

References I.

Referenced by clang::ASTReader::DecodeSelector().

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

Definition at line 673 of file ASTReader.cpp.


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