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"


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 

Definition at line 210 of file ASTReaderInternals.h.

Member Function Documentation

◆ ComputeHash()

unsigned ASTSelectorLookupTrait::ComputeHash ( Selector  Sel)

Definition at line 907 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 

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)

Definition at line 221 of file ASTReaderInternals.h.

◆ ReadData()

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

Definition at line 972 of file ASTReader.cpp.

References clang::LocalDeclID::get(), and clang::Result.

◆ ReadKey()

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

◆ ReadKeyDataLength()

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

Definition at line 945 of file ASTReader.cpp.

References readULEBKeyDataLength().

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