LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::remarks::ParsedStringTable Struct Reference

In-memory representation of the string table parsed from a buffer (e.g. More...

#include "llvm/Remarks/RemarkParser.h"

Public Member Functions

 ParsedStringTable (StringRef Buffer)
 
 ParsedStringTable (const ParsedStringTable &)=delete
 Disable copy.
 
ParsedStringTableoperator= (const ParsedStringTable &)=delete
 
 ParsedStringTable (ParsedStringTable &&)=default
 Should be movable.
 
ParsedStringTableoperator= (ParsedStringTable &&)=default
 
size_t size () const
 
Expected< StringRefoperator[] (size_t Index) const
 

Public Attributes

StringRef Buffer
 The buffer mapped from the section contents.
 
std::vector< size_t > Offsets
 This object has high changes to be std::move'd around, so don't use a SmallVector for once.
 

Detailed Description

In-memory representation of the string table parsed from a buffer (e.g.

the remarks section).

Definition at line 60 of file RemarkParser.h.

Constructor & Destructor Documentation

◆ ParsedStringTable() [1/3]

ParsedStringTable::ParsedStringTable ( StringRef  Buffer)

◆ ParsedStringTable() [2/3]

llvm::remarks::ParsedStringTable::ParsedStringTable ( const ParsedStringTable )
delete

Disable copy.

◆ ParsedStringTable() [3/3]

llvm::remarks::ParsedStringTable::ParsedStringTable ( ParsedStringTable &&  )
default

Should be movable.

Member Function Documentation

◆ operator=() [1/2]

ParsedStringTable & llvm::remarks::ParsedStringTable::operator= ( const ParsedStringTable )
delete

◆ operator=() [2/2]

ParsedStringTable & llvm::remarks::ParsedStringTable::operator= ( ParsedStringTable &&  )
default

◆ operator[]()

Expected< StringRef > ParsedStringTable::operator[] ( size_t  Index) const

◆ size()

size_t llvm::remarks::ParsedStringTable::size ( ) const
inline

Definition at line 75 of file RemarkParser.h.

References Offsets.

Member Data Documentation

◆ Buffer

StringRef llvm::remarks::ParsedStringTable::Buffer

The buffer mapped from the section contents.

Definition at line 62 of file RemarkParser.h.

Referenced by operator[](), and ParsedStringTable().

◆ Offsets

std::vector<size_t> llvm::remarks::ParsedStringTable::Offsets

This object has high changes to be std::move'd around, so don't use a SmallVector for once.

Definition at line 65 of file RemarkParser.h.

Referenced by operator[](), ParsedStringTable(), and size().


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