SingleCharacterInputStream< TextInputStreamType, SIZE > Class Template Reference

A wrapper for a TextInputStream optimised for reading a single character at a time. More...

#include <textstream.h>

Public Member Functions

 SingleCharacterInputStream (TextInputStreamType &inputStream)
bool readChar (char &c)

Private Member Functions

bool fillBuffer ()

Private Attributes

TextInputStreamType & m_inputStream
char m_buffer [SIZE]
char * m_cur
char * m_end

Detailed Description

template<typename TextInputStreamType, int SIZE = 1024>
class SingleCharacterInputStream< TextInputStreamType, SIZE >

A wrapper for a TextInputStream optimised for reading a single character at a time.

Definition at line 298 of file textstream.h.


Constructor & Destructor Documentation

template<typename TextInputStreamType, int SIZE = 1024>
SingleCharacterInputStream< TextInputStreamType, SIZE >::SingleCharacterInputStream ( TextInputStreamType &  inputStream  )  [inline]

Definition at line 311 of file textstream.h.


Member Function Documentation

template<typename TextInputStreamType, int SIZE = 1024>
bool SingleCharacterInputStream< TextInputStreamType, SIZE >::fillBuffer (  )  [inline, private]
template<typename TextInputStreamType, int SIZE = 1024>
bool SingleCharacterInputStream< TextInputStreamType, SIZE >::readChar ( char &  c  )  [inline]

Definition at line 313 of file textstream.h.

Referenced by ScriptTokeniser::ScriptTokeniser(), and ScriptTokeniser::tokenise().


Field Documentation

template<typename TextInputStreamType, int SIZE = 1024>
char SingleCharacterInputStream< TextInputStreamType, SIZE >::m_buffer[SIZE] [private]
template<typename TextInputStreamType, int SIZE = 1024>
char* SingleCharacterInputStream< TextInputStreamType, SIZE >::m_cur [private]
template<typename TextInputStreamType, int SIZE = 1024>
char* SingleCharacterInputStream< TextInputStreamType, SIZE >::m_end [private]
template<typename TextInputStreamType, int SIZE = 1024>
TextInputStreamType& SingleCharacterInputStream< TextInputStreamType, SIZE >::m_inputStream [private]

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

Generated by  doxygen 1.6.2