LLVM  10.0.0svn
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"

Collaboration diagram for llvm::remarks::ParsedStringTable:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

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

Detailed Description

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

the remarks section).

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

Member Data Documentation

◆ Buffer

StringRef llvm::remarks::ParsedStringTable::Buffer

The buffer mapped from the section contents.

Definition at line 61 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 64 of file RemarkParser.h.

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


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