GME  13
Public Member Functions | Protected Member Functions | Protected Attributes
ANTLRTokenBuffer Class Reference

#include <ATokenBuffer.h>

Collaboration diagram for ANTLRTokenBuffer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ANTLRTokenBuffer (ANTLRTokenStream *in, int k=1, int chksz=50)
virtual ~ANTLRTokenBuffer ()
virtual _ANTLRTokenPtr getToken ()
virtual void rewind (int pos)
virtual int mark ()
virtual _ANTLRTokenPtr bufferedToken (int i)
void noGarbageCollectTokens ()
void garbageCollectTokens ()
virtual int bufferSize ()
virtual int minTokens ()
virtual void setMinTokens (int k_new)
virtual void panic (char *msg)
ANTLRParsersetParser (ANTLRParser *p)
ANTLRParsergetParser ()
ANTLRTokenStreamgetLexer () const

Protected Member Functions

virtual _ANTLRTokenPtr getANTLRToken ()
void makeRoom ()
void extendBuffer ()

Protected Attributes

ANTLRTokenStreaminput
int buffer_size
int chunk_size
int num_markers
int k
_ANTLRTokenPtrbuffer
_ANTLRTokenPtrtp
_ANTLRTokenPtrlast
_ANTLRTokenPtrnext
_ANTLRTokenPtrend_of_buffer
_ANTLRTokenPtrthreshold
unsigned char _deleteTokens
ANTLRParserparser

Detailed Description

Definition at line 51 of file ATokenBuffer.h.


Constructor & Destructor Documentation

ANTLRTokenBuffer::ANTLRTokenBuffer ( ANTLRTokenStream in,
int  k = 1,
int  chksz = 50 
)

Definition at line 52 of file ATokenBuffer.cpp.

Definition at line 76 of file ATokenBuffer.cpp.


Member Function Documentation

Definition at line 181 of file ATokenBuffer.cpp.

virtual int ANTLRTokenBuffer::bufferSize ( ) [inline, virtual]

Definition at line 88 of file ATokenBuffer.h.

void ANTLRTokenBuffer::extendBuffer ( ) [protected]

Definition at line 299 of file ATokenBuffer.cpp.

Definition at line 86 of file ATokenBuffer.h.

virtual _ANTLRTokenPtr ANTLRTokenBuffer::getANTLRToken ( ) [inline, protected, virtual]

Definition at line 73 of file ATokenBuffer.h.

Definition at line 98 of file ATokenBuffer.h.

Definition at line 106 of file ATokenBuffer.cpp.

void ANTLRTokenBuffer::makeRoom ( ) [protected]

Definition at line 212 of file ATokenBuffer.cpp.

int ANTLRTokenBuffer::mark ( ) [virtual]

Definition at line 157 of file ATokenBuffer.cpp.

virtual int ANTLRTokenBuffer::minTokens ( ) [inline, virtual]

Definition at line 89 of file ATokenBuffer.h.

Definition at line 85 of file ATokenBuffer.h.

virtual void ANTLRTokenBuffer::panic ( char *  msg) [inline, virtual]

Definition at line 92 of file ATokenBuffer.h.

void ANTLRTokenBuffer::rewind ( int  pos) [virtual]

Definition at line 142 of file ATokenBuffer.cpp.

virtual void ANTLRTokenBuffer::setMinTokens ( int  k_new) [inline, virtual]

Definition at line 90 of file ATokenBuffer.h.


Member Data Documentation

unsigned char ANTLRTokenBuffer::_deleteTokens [protected]

Definition at line 70 of file ATokenBuffer.h.

Definition at line 58 of file ATokenBuffer.h.

Definition at line 54 of file ATokenBuffer.h.

Definition at line 55 of file ATokenBuffer.h.

Definition at line 62 of file ATokenBuffer.h.

Definition at line 53 of file ATokenBuffer.h.

int ANTLRTokenBuffer::k [protected]

Definition at line 57 of file ATokenBuffer.h.

Definition at line 60 of file ATokenBuffer.h.

Definition at line 61 of file ATokenBuffer.h.

Definition at line 56 of file ATokenBuffer.h.

Definition at line 94 of file ATokenBuffer.h.

Definition at line 69 of file ATokenBuffer.h.

Definition at line 59 of file ATokenBuffer.h.


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