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 |
A wrapper for a TextInputStream optimised for reading a single character at a time.
Definition at line 298 of file textstream.h.
SingleCharacterInputStream< TextInputStreamType, SIZE >::SingleCharacterInputStream | ( | TextInputStreamType & | inputStream | ) | [inline] |
Definition at line 311 of file textstream.h.
bool SingleCharacterInputStream< TextInputStreamType, SIZE >::fillBuffer | ( | ) | [inline, private] |
Definition at line 304 of file textstream.h.
Referenced by SingleCharacterInputStream< TextInputStream >::readChar().
bool SingleCharacterInputStream< TextInputStreamType, SIZE >::readChar | ( | char & | c | ) | [inline] |
Definition at line 313 of file textstream.h.
Referenced by ScriptTokeniser::ScriptTokeniser(), and ScriptTokeniser::tokenise().
char SingleCharacterInputStream< TextInputStreamType, SIZE >::m_buffer[SIZE] [private] |
Definition at line 300 of file textstream.h.
Referenced by SingleCharacterInputStream< TextInputStream >::fillBuffer().
char* SingleCharacterInputStream< TextInputStreamType, SIZE >::m_cur [private] |
Definition at line 301 of file textstream.h.
Referenced by SingleCharacterInputStream< TextInputStream >::fillBuffer(), and SingleCharacterInputStream< TextInputStream >::readChar().
char* SingleCharacterInputStream< TextInputStreamType, SIZE >::m_end [private] |
Definition at line 302 of file textstream.h.
Referenced by SingleCharacterInputStream< TextInputStream >::fillBuffer(), and SingleCharacterInputStream< TextInputStream >::readChar().
TextInputStreamType& SingleCharacterInputStream< TextInputStreamType, SIZE >::m_inputStream [private] |
Definition at line 299 of file textstream.h.
Referenced by SingleCharacterInputStream< TextInputStream >::fillBuffer().