OpenMD  2.5
Molecular Dynamics in the Open
antlr::ParserInputState Class Reference

#include <ParserSharedInputState.hpp>

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.

Definition at line 25 of file ParserSharedInputState.hpp.

Constructor & Destructor Documentation

◆ ParserInputState() [1/3]

antlr::ParserInputState::ParserInputState ( TokenBuffer in)
inline

Construct a new ParserInputState

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

Definition at line 31 of file ParserSharedInputState.hpp.

◆ ParserInputState() [2/3]

antlr::ParserInputState::ParserInputState ( TokenBuffer in)
inline

Construct a new ParserInputState

Parameters
inthe TokenBuffer to read from.

Definition at line 41 of file ParserSharedInputState.hpp.

◆ ~ParserInputState()

virtual antlr::ParserInputState::~ParserInputState ( )
inlinevirtual

Definition at line 49 of file ParserSharedInputState.hpp.

◆ ParserInputState() [3/3]

antlr::ParserInputState::ParserInputState ( const ParserInputState )
private

Member Function Documentation

◆ getInput()

TokenBuffer& antlr::ParserInputState::getInput ( void  )
inline

Definition at line 55 of file ParserSharedInputState.hpp.

◆ operator=()

ParserInputState& antlr::ParserInputState::operator= ( const ParserInputState )
private

◆ reset()

void antlr::ParserInputState::reset ( void  )
inline

Reset the ParserInputState and the underlying TokenBuffer.

Definition at line 61 of file ParserSharedInputState.hpp.

Member Data Documentation

◆ filename

std ::string antlr::ParserInputState::filename

What file (if known) caused the problem?

Todo:
wrap this one..

Definition at line 73 of file ParserSharedInputState.hpp.

◆ guessing

int antlr::ParserInputState::guessing

Are we guessing (guessing>0)?

Definition at line 69 of file ParserSharedInputState.hpp.

Referenced by antlr::LLkParser::trace(), antlr::Parser::traceIn(), and antlr::Parser::traceOut().

◆ input

TokenBuffer* antlr::ParserInputState::input
private

Where to get token objects

Definition at line 76 of file ParserSharedInputState.hpp.

◆ inputResponsible

bool antlr::ParserInputState::inputResponsible
private

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: