#include <CharInputBuffer.hpp>
Inheritance diagram for CharInputBuffer:
Public Methods | |
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 |
|
Construct a CharInputBuffer.hpp object with a char* buffer of 'size' if 'owner' is true, then the buffer will be delete[]-ed on destruction.
|
|
Destructor
|
|
Override this in subclasses to get the next character Implements InputBuffer. |
|
Reset the CharInputBuffer to initial state Called from LexerInputState::reset.
Reimplemented from InputBuffer. |
|
the buffer with data
|
|
flag signifying if we have to delete the buffer
|
|
end sentry for buffer
|
|
position ptr into the buffer
|