LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
OutputStream Class Reference

#include "llvm/Demangle/Utility.h"

Collaboration diagram for OutputStream:
Collaboration graph
[legend]

Public Member Functions

 OutputStream (char *StartBuf, size_t Size)
 
 OutputStream ()=default
 
void reset (char *Buffer_, size_t BufferCapacity_)
 
OutputStreamoperator+= (StringView R)
 
OutputStreamoperator+= (char C)
 
OutputStreamoperator<< (StringView R)
 
OutputStreamoperator<< (char C)
 
OutputStreamoperator<< (long long N)
 
OutputStreamoperator<< (unsigned long long N)
 
OutputStreamoperator<< (long N)
 
OutputStreamoperator<< (unsigned long N)
 
OutputStreamoperator<< (int N)
 
OutputStreamoperator<< (unsigned int N)
 
size_t getCurrentPosition () const
 
void setCurrentPosition (size_t NewPos)
 
char back () const
 
bool empty () const
 
chargetBuffer ()
 
chargetBufferEnd ()
 
size_t getBufferCapacity ()
 

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 25 of file Utility.h.

Constructor & Destructor Documentation

◆ OutputStream() [1/2]

OutputStream::OutputStream ( char StartBuf,
size_t  Size 
)
inline

Definition at line 64 of file Utility.h.

References OutputStream().

◆ OutputStream() [2/2]

OutputStream::OutputStream ( )
default

Referenced by OutputStream().

Member Function Documentation

◆ back()

char OutputStream::back ( ) const
inline

◆ empty()

bool OutputStream::empty ( ) const
inline

Definition at line 134 of file Utility.h.

Referenced by outputSpaceIfNecessary().

◆ getBuffer()

char* OutputStream::getBuffer ( )
inline

◆ getBufferCapacity()

size_t OutputStream::getBufferCapacity ( )
inline

Definition at line 138 of file Utility.h.

◆ getBufferEnd()

char* OutputStream::getBufferEnd ( )
inline

Definition at line 137 of file Utility.h.

◆ getCurrentPosition()

size_t OutputStream::getCurrentPosition ( ) const
inline

◆ operator+=() [1/2]

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

Definition at line 78 of file Utility.h.

References StringView::begin(), llvm::Intrinsic::memmove, Size, and StringView::size().

◆ operator+=() [2/2]

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

Definition at line 88 of file Utility.h.

References C.

◆ operator<<() [1/8]

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

Definition at line 94 of file Utility.h.

◆ operator<<() [2/8]

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

Definition at line 96 of file Utility.h.

◆ operator<<() [3/8]

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

Definition at line 98 of file Utility.h.

◆ operator<<() [4/8]

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

Definition at line 106 of file Utility.h.

◆ operator<<() [5/8]

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

Definition at line 111 of file Utility.h.

References N.

◆ operator<<() [6/8]

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

Definition at line 115 of file Utility.h.

References N.

◆ operator<<() [7/8]

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

Definition at line 119 of file Utility.h.

References N.

◆ operator<<() [8/8]

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

Definition at line 123 of file Utility.h.

References N.

◆ reset()

void OutputStream::reset ( char Buffer_,
size_t  BufferCapacity_ 
)
inline

Definition at line 67 of file Utility.h.

Referenced by initializeOutputStream().

◆ setCurrentPosition()

void OutputStream::setCurrentPosition ( size_t  NewPos)
inline

Member Data Documentation

◆ CurrentPackIndex

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

◆ CurrentPackMax

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

Definition at line 76 of file Utility.h.

Referenced by llvm::itanium_demangle::ParameterPackExpansion::printLeft().


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