|
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) |
Public Member Functions inherited from InputBuffer | |
| InputBuffer () | |
| virtual | ~InputBuffer () |
| void | commit (void) |
| virtual void | consume () |
| virtual void | fill (unsigned int amount) |
| virtual int | LA (unsigned int i) |
| virtual unsigned int | mark () |
| virtual bool | isMarked () const |
| Are there any marks active in the InputBuffer. | |
| virtual void | rewind (unsigned int mark) |
| virtual unsigned int | entries () const |
| std::string | getLAChars () const |
| std::string | getMarkedChars () const |
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 | |
Protected Attributes inherited from InputBuffer | |
| unsigned int | nMarkers |
| unsigned int | markerOffset |
| unsigned int | numToConsume |
| CircularQueue< int > | queue |
Additional Inherited Members | |
Protected Member Functions inherited from InputBuffer | |
| void | syncConsume () |
CharInputBuffer.hpp provides an InputBuffer for plain character arrays (buffers).
Construct a CharInputBuffer.hpp object with a char* buffer of 'size' if 'owner' is true, then the buffer will be delete[]-ed on destruction.
|
inline |
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.
|
protected |
flag signifying if we have to delete the buffer