clang 22.0.0git
clang::serialization::reader::LazySpecializationInfoLookupTrait Class Reference

Class that performs lookup to specialized decls. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Serialization/ASTReaderInternals.h"

Classes

struct  data_type_builder

Public Types

using data_type = SmallVector<LazySpecializationInfo, 4>
 The lookup result is a list of global declaration IDs.
using hash_value_type = unsigned
using offset_type = unsigned
using file_type = ModuleFile *
using external_key_type = unsigned
using internal_key_type = unsigned

Public Member Functions

 LazySpecializationInfoLookupTrait (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, unsignedReadKeyDataLength (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 lookup to specialized decls.

Definition at line 165 of file ASTReaderInternals.h.

Member Typedef Documentation

◆ data_type

The lookup result is a list of global declaration IDs.

Definition at line 174 of file ASTReaderInternals.h.

◆ external_key_type

◆ file_type

◆ hash_value_type

◆ internal_key_type

◆ offset_type

Constructor & Destructor Documentation

◆ LazySpecializationInfoLookupTrait()

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

Definition at line 208 of file ASTReaderInternals.h.

Member Function Documentation

◆ ComputeHash()

hash_value_type clang::serialization::reader::LazySpecializationInfoLookupTrait::ComputeHash ( const internal_key_type & Key)
inlinestatic

Definition at line 215 of file ASTReaderInternals.h.

◆ EqualKey()

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

Definition at line 211 of file ASTReaderInternals.h.

References b.

◆ GetInternalKey()

internal_key_type clang::serialization::reader::LazySpecializationInfoLookupTrait::GetInternalKey ( const external_key_type & Name)
inlinestatic

Definition at line 219 of file ASTReaderInternals.h.

◆ MergeDataInto()

void clang::serialization::reader::LazySpecializationInfoLookupTrait::MergeDataInto ( const data_type & From,
data_type_builder & To )
inlinestatic

◆ ReadDataInto()

void LazySpecializationInfoLookupTrait::ReadDataInto ( internal_key_type ,
const unsigned char * d,
unsigned DataLen,
data_type_builder & Val )

◆ ReadFileRef()

ModuleFile * LazySpecializationInfoLookupTrait::ReadFileRef ( const unsigned char *& d)

Definition at line 1425 of file ASTReader.cpp.

References ReadFileRef().

Referenced by ReadFileRef().

◆ ReadKey()

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

Definition at line 1434 of file ASTReader.cpp.

References ReadKey().

Referenced by ReadKey().

◆ ReadKeyDataLength()

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

Definition at line 1440 of file ASTReader.cpp.

References ReadKeyDataLength(), and readULEBKeyDataLength().

Referenced by ReadKeyDataLength().

Member Data Documentation

◆ MaxTables

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

Definition at line 171 of file ASTReaderInternals.h.


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