clang 22.0.0git
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 318 of file ASTReaderInternals.h.

Member Typedef Documentation

◆ external_key_type

◆ hash_value_type

◆ internal_key_type

◆ offset_type

Constructor & Destructor Documentation

◆ ASTSelectorLookupTrait()

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

Definition at line 338 of file ASTReaderInternals.h.

Member Function Documentation

◆ ComputeHash()

unsigned ASTSelectorLookupTrait::ComputeHash ( Selector Sel)
static

Definition at line 1015 of file ASTReader.cpp.

References clang::serialization::ComputeHash().

◆ EqualKey()

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

Definition at line 341 of file ASTReaderInternals.h.

References b.

◆ GetInternalKey()

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

Definition at line 349 of file ASTReaderInternals.h.

◆ ReadData()

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

Definition at line 1080 of file ASTReader.cpp.

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

◆ ReadKey()

◆ ReadKeyDataLength()

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

Definition at line 1053 of file ASTReader.cpp.

References readULEBKeyDataLength().


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