clang 19.0.0git
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 "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Serialization/ASTReaderInternals.h"

Classes

struct  data_type
 

Public Types

using external_key_type = Selector
 
using internal_key_type = external_key_type
 
using hash_value_type = unsigned
 
using offset_type = unsigned
 

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, unsignedReadKeyDataLength (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 190 of file ASTReaderInternals.h.

Member Typedef Documentation

◆ external_key_type

Definition at line 205 of file ASTReaderInternals.h.

◆ hash_value_type

Definition at line 207 of file ASTReaderInternals.h.

◆ internal_key_type

Definition at line 206 of file ASTReaderInternals.h.

◆ offset_type

Definition at line 208 of file ASTReaderInternals.h.

Constructor & Destructor Documentation

◆ ASTSelectorLookupTrait()

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

Definition at line 210 of file ASTReaderInternals.h.

Member Function Documentation

◆ ComputeHash()

unsigned ASTSelectorLookupTrait::ComputeHash ( Selector  Sel)
static

Definition at line 903 of file ASTReader.cpp.

References clang::serialization::ComputeHash().

◆ EqualKey()

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

Definition at line 213 of file ASTReaderInternals.h.

References b.

◆ GetInternalKey()

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

Definition at line 221 of file ASTReaderInternals.h.

◆ ReadData()

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

Definition at line 935 of file ASTReader.cpp.

References clang::Result.

◆ ReadKey()

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

◆ ReadKeyDataLength()

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

Definition at line 908 of file ASTReader.cpp.

References readULEBKeyDataLength().


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