#include <CharInputBuffer.hpp>
Public Member Functions | |
CharInputBuffer (unsigned char *buf, size_t size, bool owner=false) | |
~CharInputBuffer (void) | |
virtual void | reset (void) |
virtual int | getChar (void) |
Protected Attributes | |
unsigned char * | buffer |
the buffer with data | |
unsigned char * | ptr |
position ptr into the buffer | |
unsigned char * | end |
end sentry for buffer | |
bool | delete_buffer |
flag signifying if we have to delete the buffer |
Definition at line 26 of file CharInputBuffer.hpp.
CharInputBuffer::CharInputBuffer | ( | unsigned char * | buf, | |
size_t | size, | |||
bool | owner = false | |||
) | [inline] |
Construct a CharInputBuffer.hpp object with a char* buffer of 'size' if 'owner' is true, then the buffer will be delete[]-ed on destruction.
Definition at line 33 of file CharInputBuffer.hpp.
CharInputBuffer::~CharInputBuffer | ( | void | ) | [inline] |
Destructor
Definition at line 45 of file CharInputBuffer.hpp.
virtual void CharInputBuffer::reset | ( | void | ) | [inline, virtual] |
Reset the CharInputBuffer to initial state Called from LexerInputState::reset.
Reimplemented from InputBuffer.
Definition at line 55 of file CharInputBuffer.hpp.
References InputBuffer::reset().
virtual int CharInputBuffer::getChar | ( | void | ) | [inline, virtual] |
Override this in subclasses to get the next character
Implements InputBuffer.
Definition at line 61 of file CharInputBuffer.hpp.
unsigned char* CharInputBuffer::buffer [protected] |
unsigned char* CharInputBuffer::ptr [protected] |
unsigned char* CharInputBuffer::end [protected] |
bool CharInputBuffer::delete_buffer [protected] |