cphot 0.1
A C++ tool for computing photometry from spectra.
stream.h File Reference
#include "rapidjson.h"
#include "encodings.h"

Go to the source code of this file.

Classes

struct  StreamTraits< Stream >
 Provides additional information for stream. More...
 
struct  GenericStringStream< Encoding >
 Read-only string stream. More...
 
struct  StreamTraits< GenericStringStream< Encoding > >
 
struct  GenericInsituStringStream< Encoding >
 A read-write string stream. More...
 
struct  StreamTraits< GenericInsituStringStream< Encoding > >
 

Typedefs

typedef GenericStringStream< UTF8<> > StringStream
 String stream with UTF8 encoding. More...
 
typedef GenericInsituStringStream< UTF8<> > InsituStringStream
 Insitu string stream with UTF8 encoding. More...
 

Functions

template<typename Stream >
void PutReserve (Stream &stream, size_t count)
 Reserve n characters for writing to a stream. More...
 
template<typename Stream >
void PutUnsafe (Stream &stream, typename Stream::Ch c)
 Write character to a stream, presuming buffer is reserved. More...
 
template<typename Stream , typename Ch >
void PutN (Stream &stream, Ch c, size_t n)
 Put N copies of a character to a stream. More...
 

Typedef Documentation

◆ InsituStringStream

Insitu string stream with UTF8 encoding.

Definition at line 175 of file stream.h.

◆ StringStream

String stream with UTF8 encoding.

Definition at line 134 of file stream.h.

Function Documentation

◆ PutN()

template<typename Stream , typename Ch >
void PutN ( Stream stream,
Ch  c,
size_t  n 
)
inline

Put N copies of a character to a stream.

Definition at line 97 of file stream.h.

◆ PutReserve()

template<typename Stream >
void PutReserve ( Stream stream,
size_t  count 
)
inline

Reserve n characters for writing to a stream.

Definition at line 84 of file stream.h.

◆ PutUnsafe()

template<typename Stream >
void PutUnsafe ( Stream stream,
typename Stream::Ch  c 
)
inline

Write character to a stream, presuming buffer is reserved.

Definition at line 91 of file stream.h.