ParserInputState Class Reference

#include <ParserSharedInputState.hpp>

Collaboration diagram for ParserInputState:

Collaboration graph
[legend]

Public Member Functions

 ParserInputState (TokenBuffer *in)
 ParserInputState (TokenBuffer &in)
virtual ~ParserInputState ()
TokenBuffergetInput (void)
void reset (void)
 Reset the ParserInputState and the underlying TokenBuffer.
 ANTLR_USE_NAMESPACE (std) string filename

Data Fields

int guessing

Private Member Functions

 ParserInputState (const ParserInputState &)
ParserInputStateoperator= (const ParserInputState &)

Private Attributes

TokenBufferinput
bool inputResponsible
 Do we need to free the TokenBuffer or is it owned by another..

Detailed Description

This object contains the data associated with an input stream of tokens. Multiple parsers share a single ParserSharedInputState to parse the same stream of tokens.

Definition at line 25 of file ParserSharedInputState.hpp.


Constructor & Destructor Documentation

ParserInputState::ParserInputState ( TokenBuffer in  )  [inline]

Construct a new ParserInputState

Parameters:
in the TokenBuffer to read from. The object is deleted together with the ParserInputState object.

Definition at line 31 of file ParserSharedInputState.hpp.

ParserInputState::ParserInputState ( TokenBuffer in  )  [inline]

Construct a new ParserInputState

Parameters:
in the TokenBuffer to read from.

Definition at line 41 of file ParserSharedInputState.hpp.

virtual ParserInputState::~ParserInputState (  )  [inline, virtual]

Definition at line 49 of file ParserSharedInputState.hpp.

ParserInputState::ParserInputState ( const ParserInputState  )  [private]


Member Function Documentation

TokenBuffer& ParserInputState::getInput ( void   )  [inline]

Definition at line 55 of file ParserSharedInputState.hpp.

void ParserInputState::reset ( void   )  [inline]

Reset the ParserInputState and the underlying TokenBuffer.

Definition at line 61 of file ParserSharedInputState.hpp.

ParserInputState::ANTLR_USE_NAMESPACE ( std   ) 

What file (if known) caused the problem?

Todo:
wrap this one..

ParserInputState& ParserInputState::operator= ( const ParserInputState  )  [private]


Field Documentation

Are we guessing (guessing>0)?

Definition at line 69 of file ParserSharedInputState.hpp.

Where to get token objects

Definition at line 76 of file ParserSharedInputState.hpp.

Do we need to free the TokenBuffer or is it owned by another..

Definition at line 78 of file ParserSharedInputState.hpp.


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

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