1#ifndef INC_InputBuffer_hpp__
2#define INC_InputBuffer_hpp__
11#include <antlr/config.hpp>
12#include <antlr/CircularQueue.hpp>
15#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
46 virtual inline void reset(
void )
72 virtual void fill(
unsigned int amount);
78 virtual inline int LA(
unsigned int i)
81 return queue.elementAt(markerOffset + i - 1);
87 virtual unsigned int mark();
91 return (nMarkers != 0);
96 virtual void rewind(
unsigned int mark);
100 virtual unsigned int entries()
const;
102 ANTLR_USE_NAMESPACE(std)
string getLAChars()
const;
104 ANTLR_USE_NAMESPACE(std)
string getMarkedChars()
const;
111 unsigned int nMarkers;
114 unsigned int markerOffset;
117 unsigned int numToConsume;
132 if (numToConsume > 0)
135 markerOffset += numToConsume;
137 queue.removeItems( numToConsume );
142#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE