ANTLR Support Libraries 2.7.1+
Loading...
Searching...
No Matches
TokenWithIndex Class Reference

#include <TokenWithIndex.hpp>

Inheritance diagram for TokenWithIndex:
Collaboration diagram for 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 &)

Constructor & Destructor Documentation

◆ TokenWithIndex() [1/4]

TokenWithIndex::TokenWithIndex ( )
inline

◆ TokenWithIndex() [2/4]

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

◆ TokenWithIndex() [3/4]

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

◆ ~TokenWithIndex()

TokenWithIndex::~TokenWithIndex ( )
inline

◆ TokenWithIndex() [4/4]

TokenWithIndex::TokenWithIndex ( const TokenWithIndex & )
private

Member Function Documentation

◆ factory()

RefToken TokenWithIndex::factory ( )
inlinestatic

◆ getIndex()

size_t TokenWithIndex::getIndex ( void ) const
inline

◆ operator=()

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

◆ setIndex()

void TokenWithIndex::setIndex ( size_t idx)
inline

◆ toString()

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

Member Data Documentation

◆ index

size_t TokenWithIndex::index
protected

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