public

Inheritance Graph

graph BT
	Token
	Token --> EReferenceCounter
	TColon --> Token
	TControl --> Token
	TEndBlock --> Token
	TEndCommand --> Token
	TEndMap --> Token
	TEndScript --> Token
	TIdentifier --> Token
	TMapDelimiter --> Token
	TOperator --> Token
	TStartBlock --> Token
	TStartMap --> Token
	TValueBool --> Token
	TValueIdentifier --> Token
	TValueNumber --> Token
	TValueString --> Token
	TValueVoid --> Token
	click Token "classEScript_1_1Token"
	click EReferenceCounter "classEScript_1_1EReferenceCounter"
	click TColon "structEScript_1_1TColon"
	click TControl "classEScript_1_1TControl"
	click TEndBlock "structEScript_1_1TEndBlock"
	click TEndCommand "structEScript_1_1TEndCommand"
	click TEndMap "structEScript_1_1TEndMap"
	click TEndScript "structEScript_1_1TEndScript"
	click TIdentifier "classEScript_1_1TIdentifier"
	click TMapDelimiter "structEScript_1_1TMapDelimiter"
	click TOperator "structEScript_1_1TOperator"
	click TStartBlock "structEScript_1_1TStartBlock"
	click TStartMap "structEScript_1_1TStartMap"
	click TValueBool "structEScript_1_1TValueBool"
	click TValueIdentifier "structEScript_1_1TValueIdentifier"
	click TValueNumber "structEScript_1_1TValueNumber"
	click TValueString "structEScript_1_1TValueString"
	click TValueVoid "structEScript_1_1TValueVoid"

Description

[ Token ]

Public Static Attributes

   
   
const uint32_t TYPE_ID
   
int tokenCount

Public Attributes

   
   
const uint32_t typeId

Public Static Functions

   
   
uint32_t getTypeId()
template< class TokenType_t >  
bool isA( Token * t)
template< class TokenType_t >  
bool isA(const _CountedRef < Token > & t)
template< class TokenType_t >  
TokenType_t * cast(const _CountedRef < Token > & t)
template< class TokenType_t >  
TokenType_t * cast( Token * t)

Public Functions

   
   
  Token(const uint32_t _type)
   
  ~Token()
   
std::string toString() const
   
void setLine(int _line)
   
int getLine() const
   
Token * clone() const
   
uint32_t getType() const
   
void setStaringPos(size_t p)
   
size_t getStartingPos() const

Documentation

variable
EScript::Token::TYPE_ID

public static
 
 
const uint32_t TYPE_ID

Defined in EScript/EScript/Compiler/Token.h:28


variable
EScript::Token::tokenCount

public static
 
 
int tokenCount

Defined in EScript/EScript/Compiler/Token.h:49


variable
EScript::Token::typeId

public
 
 
const uint32_t typeId

Defined in EScript/EScript/Compiler/Token.h:63


function
EScript::Token::getTypeId

public static inline
   
   
uint32_t getTypeId( )

Defined in EScript/EScript/Compiler/Token.h:29


function
EScript::Token::isA

public static inline
     
template< class TokenType_t >    
bool isA( Token * t )

Defined in EScript/EScript/Compiler/Token.h:32


function
EScript::Token::isA

public static inline
     
template< class TokenType_t >    
bool isA( const _CountedRef < Token > & t )

Defined in EScript/EScript/Compiler/Token.h:36


function
EScript::Token::cast

public static inline
     
template< class TokenType_t >    
TokenType_t * cast( const _CountedRef < Token > & t )

Defined in EScript/EScript/Compiler/Token.h:40


function
EScript::Token::cast

public static inline
     
template< class TokenType_t >    
TokenType_t * cast( Token * t )

Defined in EScript/EScript/Compiler/Token.h:44


function
EScript::Token::Token

public inline
     
     
Token( const uint32_t _type )

Defined in EScript/EScript/Compiler/Token.h:51


function
EScript::Token::~Token

public inline virtual
   
   
~Token( )

Defined in EScript/EScript/Compiler/Token.h:53


function
EScript::Token::toString

public const inline virtual
   
   
std::string toString( ) const

Defined in EScript/EScript/Compiler/Token.h:54


function
EScript::Token::setLine

public inline
     
     
void setLine( int _line )

Defined in EScript/EScript/Compiler/Token.h:56


function
EScript::Token::getLine

public const inline
   
   
int getLine( ) const

Defined in EScript/EScript/Compiler/Token.h:57


function
EScript::Token::clone

public const inline virtual
   
   
Token * clone( ) const

Defined in EScript/EScript/Compiler/Token.h:60


function
EScript::Token::getType

public const inline
   
   
uint32_t getType( ) const

Defined in EScript/EScript/Compiler/Token.h:62


function
EScript::Token::setStaringPos

public inline
     
     
void setStaringPos( size_t p )

Defined in EScript/EScript/Compiler/Token.h:65


function
EScript::Token::getStartingPos

public const inline
   
   
size_t getStartingPos( ) const

Defined in EScript/EScript/Compiler/Token.h:66