CharBuffer Class Reference

#include <CharBuffer.hpp>

Inheritance diagram for CharBuffer:

Inheritance graph
[legend]
Collaboration diagram for CharBuffer:

Collaboration graph
[legend]

Public Member Functions

 CharBuffer (ANTLR_USE_NAMESPACE(std) istream &input)
 Create a character buffer.
int getChar ()
 Get the next character from the stream.

Protected Member Functions

 ANTLR_USE_NAMESPACE (std) istream &input

Private Member Functions

 CharBuffer (const CharBuffer &other)
CharBufferoperator= (const CharBuffer &other)

Detailed Description

A Stream of characters fed to the lexer from a InputStream that can be rewound via mark()/rewind() methods.

A dynamic array is used to buffer up all the input characters. Normally, "k" characters are stored in the buffer. More characters may be stored during guess mode (testing syntactic predicate), or when LT(i>k) is referenced. Consumption of characters is deferred. In other words, reading the next character is not done by consume(), but deferred until needed by LA or LT.

See also:
antlr.CharQueue

Definition at line 35 of file CharBuffer.hpp.


Constructor & Destructor Documentation

CharBuffer::CharBuffer ( ANTLR_USE_NAMESPACE(std) istream &  input  ) 

Create a character buffer.

CharBuffer::CharBuffer ( const CharBuffer other  )  [private]


Member Function Documentation

int CharBuffer::getChar (  )  [virtual]

Get the next character from the stream.

Implements InputBuffer.

CharBuffer::ANTLR_USE_NAMESPACE ( std   )  [protected]

CharBuffer& CharBuffer::operator= ( const CharBuffer other  )  [private]


The documentation for this class was generated from the following file:

Generated on Tue Mar 31 20:19:25 2009 for ctrump by  doxygen 1.5.6