OpenMD 3.0
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
antlr::TokenWithIndex Class Reference
+ Inheritance diagram for antlr::TokenWithIndex:

Public Member Functions

 TokenWithIndex (int t, const std ::string &txt)
 
 TokenWithIndex (const std ::string &s)
 
void setIndex (size_t idx)
 
size_t getIndex (void) const
 
std::string toString () const
 

Static Public Member Functions

static RefToken factory ()
 

Protected Attributes

size_t index
 

Detailed Description

Definition at line 19 of file TokenWithIndex.hpp.

Constructor & Destructor Documentation

◆ TokenWithIndex() [1/3]

antlr::TokenWithIndex::TokenWithIndex ( )
inline

Definition at line 22 of file TokenWithIndex.hpp.

◆ TokenWithIndex() [2/3]

antlr::TokenWithIndex::TokenWithIndex ( int t,
const std ::string & txt )
inline

Definition at line 27 of file TokenWithIndex.hpp.

◆ TokenWithIndex() [3/3]

antlr::TokenWithIndex::TokenWithIndex ( const std ::string & s)
inline

Definition at line 34 of file TokenWithIndex.hpp.

◆ ~TokenWithIndex()

antlr::TokenWithIndex::~TokenWithIndex ( )
inline

Definition at line 41 of file TokenWithIndex.hpp.

Member Function Documentation

◆ factory()

static RefToken antlr::TokenWithIndex::factory ( )
inlinestatic

Definition at line 65 of file TokenWithIndex.hpp.

◆ getIndex()

size_t antlr::TokenWithIndex::getIndex ( void ) const
inline

Definition at line 49 of file TokenWithIndex.hpp.

◆ setIndex()

void antlr::TokenWithIndex::setIndex ( size_t idx)
inline

Definition at line 45 of file TokenWithIndex.hpp.

◆ toString()

std::string antlr::TokenWithIndex::toString ( ) const
inline

Definition at line 54 of file TokenWithIndex.hpp.

Member Data Documentation

◆ index

size_t antlr::TokenWithIndex::index
protected

Definition at line 71 of file TokenWithIndex.hpp.


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