LLVM 20.0.0git
Public Member Functions | List of all members
llvm::codeview::TypeTableCollection Class Reference

#include "llvm/DebugInfo/CodeView/TypeTableCollection.h"

Inheritance diagram for llvm::codeview::TypeTableCollection:
Inheritance graph
[legend]

Public Member Functions

 TypeTableCollection (ArrayRef< ArrayRef< uint8_t > > Records)
 
std::optional< TypeIndexgetFirst () override
 
std::optional< TypeIndexgetNext (TypeIndex Prev) override
 
CVType getType (TypeIndex Index) override
 
StringRef getTypeName (TypeIndex Index) override
 
bool contains (TypeIndex Index) override
 
uint32_t size () override
 
uint32_t capacity () override
 
bool replaceType (TypeIndex &Index, CVType Data, bool Stabilize) override
 
- Public Member Functions inherited from llvm::codeview::TypeCollection
virtual ~TypeCollection ()=default
 
bool empty ()
 
virtual std::optional< TypeIndexgetFirst ()=0
 
virtual std::optional< TypeIndexgetNext (TypeIndex Prev)=0
 
virtual CVType getType (TypeIndex Index)=0
 
virtual StringRef getTypeName (TypeIndex Index)=0
 
virtual bool contains (TypeIndex Index)=0
 
virtual uint32_t size ()=0
 
virtual uint32_t capacity ()=0
 
virtual bool replaceType (TypeIndex &Index, CVType Data, bool Stabilize)=0
 
template<typename TFunc >
void ForEachRecord (TFunc Func)
 

Detailed Description

Definition at line 20 of file TypeTableCollection.h.

Constructor & Destructor Documentation

◆ TypeTableCollection()

TypeTableCollection::TypeTableCollection ( ArrayRef< ArrayRef< uint8_t > >  Records)
explicit

Definition at line 19 of file TypeTableCollection.cpp.

References Allocator.

Member Function Documentation

◆ capacity()

uint32_t TypeTableCollection::capacity ( )
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 61 of file TypeTableCollection.cpp.

◆ contains()

bool TypeTableCollection::contains ( TypeIndex  Index)
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 55 of file TypeTableCollection.cpp.

References size().

Referenced by getNext().

◆ getFirst()

std::optional< TypeIndex > TypeTableCollection::getFirst ( )
overridevirtual

◆ getNext()

std::optional< TypeIndex > TypeTableCollection::getNext ( TypeIndex  Prev)
overridevirtual

◆ getType()

CVType TypeTableCollection::getType ( TypeIndex  Index)
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 38 of file TypeTableCollection.cpp.

References assert().

◆ getTypeName()

StringRef TypeTableCollection::getTypeName ( TypeIndex  Index)
overridevirtual

◆ replaceType()

bool TypeTableCollection::replaceType ( TypeIndex Index,
CVType  Data,
bool  Stabilize 
)
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 63 of file TypeTableCollection.cpp.

References llvm_unreachable.

◆ size()

uint32_t TypeTableCollection::size ( )
overridevirtual

Implements llvm::codeview::TypeCollection.

Definition at line 59 of file TypeTableCollection.cpp.

Referenced by contains(), and getNext().


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