cphot 0.1
A C++ tool for computing photometry from spectra.
stringbuffer.h File Reference
#include "stream.h"
#include "internal/stack.h"

Go to the source code of this file.

Classes

class  GenericStringBuffer< Encoding, Allocator >
 Represents an in-memory output stream. More...
 

Typedefs

typedef GenericStringBuffer< UTF8<> > StringBuffer
 String buffer with UTF8 encoding. More...
 

Functions

template<typename Encoding , typename Allocator >
void PutReserve (GenericStringBuffer< Encoding, Allocator > &stream, size_t count)
 
template<typename Encoding , typename Allocator >
void PutUnsafe (GenericStringBuffer< Encoding, Allocator > &stream, typename Encoding::Ch c)
 
template<>
void PutN (GenericStringBuffer< UTF8<> > &stream, char c, size_t n)
 Implement specialized version of PutN() with memset() for better performance. More...
 

Typedef Documentation

◆ StringBuffer

String buffer with UTF8 encoding.

Definition at line 93 of file stringbuffer.h.

Function Documentation

◆ PutN()

template<>
void PutN ( GenericStringBuffer< UTF8<> > &  stream,
char  c,
size_t  n 
)
inline

Implement specialized version of PutN() with memset() for better performance.

Definition at line 107 of file stringbuffer.h.

◆ PutReserve()

template<typename Encoding , typename Allocator >
void PutReserve ( GenericStringBuffer< Encoding, Allocator > &  stream,
size_t  count 
)
inline

Definition at line 96 of file stringbuffer.h.

◆ PutUnsafe()

template<typename Encoding , typename Allocator >
void PutUnsafe ( GenericStringBuffer< Encoding, Allocator > &  stream,
typename Encoding::Ch  c 
)
inline

Definition at line 101 of file stringbuffer.h.