ANTLR Support Libraries 2.7.1+
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
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. More...
 

Public Attributes

int guessing
 
std::string filename
 

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.. More...
 

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.

Constructor & Destructor Documentation

ParserInputState::ParserInputState ( TokenBuffer in)
inline

Construct a new ParserInputState

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

Construct a new ParserInputState

Parameters
inthe TokenBuffer to read from.
virtual ParserInputState::~ParserInputState ( )
inlinevirtual
ParserInputState::ParserInputState ( const ParserInputState )
private

Member Function Documentation

TokenBuffer& ParserInputState::getInput ( void  )
inline
ParserInputState& ParserInputState::operator= ( const ParserInputState )
private
void ParserInputState::reset ( void  )
inline

Reset the ParserInputState and the underlying TokenBuffer.

Member Data Documentation

std ::string ParserInputState::filename

What file (if known) caused the problem?

Todo:
wrap this one..
int ParserInputState::guessing

Are we guessing (guessing>0)?

TokenBuffer* ParserInputState::input
private

Where to get token objects

bool ParserInputState::inputResponsible
private

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


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