LLVM  14.0.0git
Public Member Functions | Public Attributes | List of all members
OutputBuffer Class Reference

#include "llvm/Demangle/Utility.h"

Collaboration diagram for OutputBuffer:
Collaboration graph
[legend]

Public Member Functions

 OutputBuffer (char *StartBuf, size_t Size)
 
 OutputBuffer ()=default
 
void reset (char *Buffer_, size_t BufferCapacity_)
 
OutputBufferoperator+= (StringView R)
 
OutputBufferoperator+= (char C)
 
OutputBufferoperator<< (StringView R)
 
OutputBuffer prepend (StringView R)
 
OutputBufferoperator<< (char C)
 
OutputBufferoperator<< (long long N)
 
OutputBufferoperator<< (unsigned long long N)
 
OutputBufferoperator<< (long N)
 
OutputBufferoperator<< (unsigned long N)
 
OutputBufferoperator<< (int N)
 
OutputBufferoperator<< (unsigned int N)
 
void insert (size_t Pos, const char *S, size_t N)
 
size_t getCurrentPosition () const
 
void setCurrentPosition (size_t NewPos)
 
char back () const
 
bool empty () const
 
char * getBuffer ()
 
char * getBufferEnd ()
 
size_t getBufferCapacity () const
 

Public Attributes

unsigned CurrentPackIndex = std::numeric_limits<unsigned>::max()
 If a ParameterPackExpansion (or similar type) is encountered, the offset into the pack that we're currently printing. More...
 
unsigned CurrentPackMax = std::numeric_limits<unsigned>::max()
 

Detailed Description

Definition at line 27 of file Utility.h.

Constructor & Destructor Documentation

◆ OutputBuffer() [1/2]

OutputBuffer::OutputBuffer ( char *  StartBuf,
size_t  Size 
)
inline

Definition at line 66 of file Utility.h.

◆ OutputBuffer() [2/2]

OutputBuffer::OutputBuffer ( )
default

Member Function Documentation

◆ back()

char OutputBuffer::back ( ) const
inline

Definition at line 153 of file Utility.h.

◆ empty()

bool OutputBuffer::empty ( ) const
inline

Definition at line 157 of file Utility.h.

◆ getBuffer()

char* OutputBuffer::getBuffer ( )
inline

Definition at line 159 of file Utility.h.

◆ getBufferCapacity()

size_t OutputBuffer::getBufferCapacity ( ) const
inline

Definition at line 161 of file Utility.h.

◆ getBufferEnd()

char* OutputBuffer::getBufferEnd ( )
inline

Definition at line 160 of file Utility.h.

◆ getCurrentPosition()

size_t OutputBuffer::getCurrentPosition ( ) const
inline

Definition at line 150 of file Utility.h.

◆ insert()

void OutputBuffer::insert ( size_t  Pos,
const char *  S,
size_t  N 
)
inline

Definition at line 140 of file Utility.h.

References assert(), memcpy(), N, and S.

◆ operator+=() [1/2]

OutputBuffer& OutputBuffer::operator+= ( char  C)
inline

Definition at line 90 of file Utility.h.

◆ operator+=() [2/2]

OutputBuffer& OutputBuffer::operator+= ( StringView  R)
inline

Definition at line 80 of file Utility.h.

References llvm::RISCVFenceField::R, and llvm::Check::Size.

◆ operator<<() [1/8]

OutputBuffer& OutputBuffer::operator<< ( char  C)
inline

Definition at line 109 of file Utility.h.

◆ operator<<() [2/8]

OutputBuffer& OutputBuffer::operator<< ( int  N)
inline

Definition at line 132 of file Utility.h.

References N.

◆ operator<<() [3/8]

OutputBuffer& OutputBuffer::operator<< ( long long  N)
inline

Definition at line 111 of file Utility.h.

References N.

◆ operator<<() [4/8]

OutputBuffer& OutputBuffer::operator<< ( long  N)
inline

Definition at line 124 of file Utility.h.

References N.

◆ operator<<() [5/8]

OutputBuffer& OutputBuffer::operator<< ( StringView  R)
inline

Definition at line 96 of file Utility.h.

References llvm::RISCVFenceField::R.

◆ operator<<() [6/8]

OutputBuffer& OutputBuffer::operator<< ( unsigned int  N)
inline

Definition at line 136 of file Utility.h.

References N.

◆ operator<<() [7/8]

OutputBuffer& OutputBuffer::operator<< ( unsigned long long  N)
inline

Definition at line 119 of file Utility.h.

References N.

◆ operator<<() [8/8]

OutputBuffer& OutputBuffer::operator<< ( unsigned long  N)
inline

Definition at line 128 of file Utility.h.

References N.

◆ prepend()

OutputBuffer OutputBuffer::prepend ( StringView  R)
inline

Definition at line 98 of file Utility.h.

References memcpy(), llvm::RISCVFenceField::R, and llvm::Check::Size.

◆ reset()

void OutputBuffer::reset ( char *  Buffer_,
size_t  BufferCapacity_ 
)
inline

Definition at line 69 of file Utility.h.

◆ setCurrentPosition()

void OutputBuffer::setCurrentPosition ( size_t  NewPos)
inline

Definition at line 151 of file Utility.h.

Member Data Documentation

◆ CurrentPackIndex

unsigned OutputBuffer::CurrentPackIndex = std::numeric_limits<unsigned>::max()

If a ParameterPackExpansion (or similar type) is encountered, the offset into the pack that we're currently printing.

Definition at line 77 of file Utility.h.

◆ CurrentPackMax

unsigned OutputBuffer::CurrentPackMax = std::numeric_limits<unsigned>::max()

Definition at line 78 of file Utility.h.


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