ZeroErr
Loading...
Searching...
No Matches
zeroerr::StringBuffer Class Reference

#include <buffer.h>

Classes

struct  Format
 

Public Member Functions

 StringBuffer ()=default
 
template<class Stream >
void attach (Stream &stream)
 
template<class Stream , typename std::enable_if<!std::is_same< Stream, StringBuffer >::value, int >::type = 0>
 StringBuffer (Stream &stream)
 
StringBuffer & write (const char *data, std::size_t size)
 
void flush ()
 
void clear ()
 
String str () const
 
const String & text () const
 
Format & format ()
 
const Format & format () const
 
StringBuffer & operator<< (const String &text)
 
StringBuffer & operator<< (const char *text)
 
StringBuffer & operator<< (char value)
 
StringBuffer & operator<< (const void *value)
 
StringBuffer & operator<< (std::nullptr_t)
 
template<class T >
std::enable_if< std::is_integral< T >::value &&!std::is_same< T, char >::value, StringBuffer & >::type operator<< (T value)
 
template<class T >
std::enable_if< std::is_floating_point< T >::value, StringBuffer & >::type operator<< (T value)
 
template<class T >
std::enable_if< std::is_enum< T >::value, StringBuffer & >::type operator<< (T value)
 

Constructor & Destructor Documentation

◆ StringBuffer() [1/2]

zeroerr::StringBuffer::StringBuffer ( )
default

◆ StringBuffer() [2/2]

template<class Stream , typename std::enable_if<!std::is_same< Stream, StringBuffer >::value, int >::type = 0>
zeroerr::StringBuffer::StringBuffer ( Stream &  stream)
inlineexplicit

Member Function Documentation

◆ attach()

template<class Stream >
void zeroerr::StringBuffer::attach ( Stream &  stream)
inline

◆ clear()

void zeroerr::StringBuffer::clear ( )
inline

◆ flush()

void zeroerr::StringBuffer::flush ( )

◆ format() [1/2]

Format & zeroerr::StringBuffer::format ( )
inline

◆ format() [2/2]

const Format & zeroerr::StringBuffer::format ( ) const
inline

◆ operator<<() [1/8]

StringBuffer & zeroerr::StringBuffer::operator<< ( char  value)
inline

◆ operator<<() [2/8]

StringBuffer & zeroerr::StringBuffer::operator<< ( const char *  text)

◆ operator<<() [3/8]

StringBuffer & zeroerr::StringBuffer::operator<< ( const String &  text)
inline

◆ operator<<() [4/8]

StringBuffer & zeroerr::StringBuffer::operator<< ( const void *  value)

◆ operator<<() [5/8]

StringBuffer & zeroerr::StringBuffer::operator<< ( std::nullptr_t  )
inline

◆ operator<<() [6/8]

template<class T >
std::enable_if< std::is_integral< T >::value &&!std::is_same< T, char >::value, StringBuffer & >::type zeroerr::StringBuffer::operator<< ( T  value)
inline

◆ operator<<() [7/8]

template<class T >
std::enable_if< std::is_floating_point< T >::value, StringBuffer & >::type zeroerr::StringBuffer::operator<< ( T  value)
inline

◆ operator<<() [8/8]

template<class T >
std::enable_if< std::is_enum< T >::value, StringBuffer & >::type zeroerr::StringBuffer::operator<< ( T  value)
inline

◆ str()

String zeroerr::StringBuffer::str ( ) const
inline

◆ text()

const String & zeroerr::StringBuffer::text ( ) const
inline

◆ write()

StringBuffer & zeroerr::StringBuffer::write ( const char *  data,
std::size_t  size 
)

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