cphot 0.1
A C++ tool for computing photometry from spectra.
GenericStringStream< Encoding > Struct Template Reference

Read-only string stream. More...

#include <fwd.h>

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

 GenericStringStream (const Ch *src)
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell () const
 
ChPutBegin ()
 
void Put (Ch)
 
void Flush ()
 
size_t PutEnd (Ch *)
 

Public Attributes

const Chsrc_
 Current read position. More...
 
const Chhead_
 Original head of the string. More...
 

Detailed Description

template<typename Encoding>
struct GenericStringStream< Encoding >

Read-only string stream.

Note
implements Stream concept

Definition at line 47 of file fwd.h.

Member Typedef Documentation

◆ Ch

template<typename Encoding >
typedef Encoding::Ch GenericStringStream< Encoding >::Ch

Definition at line 111 of file stream.h.

Constructor & Destructor Documentation

◆ GenericStringStream()

template<typename Encoding >
GenericStringStream< Encoding >::GenericStringStream ( const Ch src)
inline

Definition at line 113 of file stream.h.

Member Function Documentation

◆ Flush()

template<typename Encoding >
void GenericStringStream< Encoding >::Flush ( )
inline

Definition at line 121 of file stream.h.

◆ Peek()

template<typename Encoding >
Ch GenericStringStream< Encoding >::Peek ( ) const
inline

Definition at line 115 of file stream.h.

◆ Put()

template<typename Encoding >
void GenericStringStream< Encoding >::Put ( Ch  )
inline

Definition at line 120 of file stream.h.

◆ PutBegin()

template<typename Encoding >
Ch* GenericStringStream< Encoding >::PutBegin ( )
inline

Definition at line 119 of file stream.h.

◆ PutEnd()

template<typename Encoding >
size_t GenericStringStream< Encoding >::PutEnd ( Ch )
inline

Definition at line 122 of file stream.h.

◆ Take()

template<typename Encoding >
Ch GenericStringStream< Encoding >::Take ( )
inline

Definition at line 116 of file stream.h.

◆ Tell()

template<typename Encoding >
size_t GenericStringStream< Encoding >::Tell ( ) const
inline

Definition at line 117 of file stream.h.

Member Data Documentation

◆ head_

template<typename Encoding >
const Ch* GenericStringStream< Encoding >::head_

Original head of the string.

Definition at line 125 of file stream.h.

◆ src_

template<typename Encoding >
const Ch* GenericStringStream< Encoding >::src_

Current read position.

Definition at line 124 of file stream.h.


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