|
ANTLR Support Libraries 2.7.1+
|
#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 | |
CharInputBuffer.hpp provides an InputBuffer for plain character arrays (buffers).
| 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.
| CharInputBuffer::~CharInputBuffer | ( | void | ) | [inline] |
Destructor
| virtual int CharInputBuffer::getChar | ( | void | ) | [inline, virtual] |
Override this in subclasses to get the next character
Implements InputBuffer.
| virtual void CharInputBuffer::reset | ( | void | ) | [inline, virtual] |
Reset the CharInputBuffer to initial state Called from LexerInputState::reset.
Reimplemented from InputBuffer.
unsigned char* CharInputBuffer::buffer [protected] |
the buffer with data
bool CharInputBuffer::delete_buffer [protected] |
flag signifying if we have to delete the buffer
unsigned char* CharInputBuffer::end [protected] |
end sentry for buffer
unsigned char* CharInputBuffer::ptr [protected] |
position ptr into the buffer
1.7.6.1