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

#include <TokenWithIndex.hpp>

Inheritance diagram for antlr::TokenWithIndex:

Public Member Functions

 TokenWithIndex ()
 
 TokenWithIndex (int t, const std ::string &txt)
 
 TokenWithIndex (const std ::string &s)
 
 ~TokenWithIndex ()
 
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
 

Private Member Functions

 TokenWithIndex (const TokenWithIndex &)
 
const TokenWithIndexoperator= (const TokenWithIndex &)
 

Detailed Description

Definition at line 19 of file TokenWithIndex.hpp.

Constructor & Destructor Documentation

◆ TokenWithIndex() [1/4]

antlr::TokenWithIndex::TokenWithIndex ( )
inline

Definition at line 22 of file TokenWithIndex.hpp.

◆ TokenWithIndex() [2/4]

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

Definition at line 27 of file TokenWithIndex.hpp.

◆ TokenWithIndex() [3/4]

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.

◆ TokenWithIndex() [4/4]

antlr::TokenWithIndex::TokenWithIndex ( const TokenWithIndex )
private

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.

◆ operator=()

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

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

References ANTLR_USE_NAMESPACE.

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: