Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

Sundance::Token Class Reference

#include <Token.h>

List of all members.

Public Methods

Private Attributes


Constructor & Destructor Documentation

Sundance::Token::Token   [inline]
 

Definition at line 29 of file Token.h.

References tok_, Sundance::TT_Unknown, and type_.

Sundance::Token::Token const string &    tok
 


Member Function Documentation

bool Sundance::Token::isUnknown   const [inline]
 

Definition at line 32 of file Token.h.

References Sundance::TT_Unknown, and type_.

bool Sundance::Token::isAssign   const [inline]
 

Definition at line 34 of file Token.h.

References Sundance::TT_Assign, and type_.

bool Sundance::Token::isOpenParen   const [inline]
 

Definition at line 35 of file Token.h.

References Sundance::TT_OpenParen, and type_.

bool Sundance::Token::isCloseParen   const [inline]
 

Definition at line 36 of file Token.h.

References Sundance::TT_CloseParen, and type_.

bool Sundance::Token::isOpenBrace   const [inline]
 

Definition at line 37 of file Token.h.

References Sundance::TT_OpenBrace, and type_.

bool Sundance::Token::isCloseBrace   const [inline]
 

Definition at line 38 of file Token.h.

References Sundance::TT_CloseBrace, and type_.

bool Sundance::Token::isOpenBracket   const [inline]
 

Definition at line 39 of file Token.h.

References Sundance::TT_OpenBracket, and type_.

bool Sundance::Token::isCloseBracket   const [inline]
 

Definition at line 40 of file Token.h.

References Sundance::TT_CloseBracket, and type_.

bool Sundance::Token::isComma   const [inline]
 

Definition at line 41 of file Token.h.

References Sundance::TT_Comma, and type_.

bool Sundance::Token::isPlus   const [inline]
 

Definition at line 43 of file Token.h.

References Sundance::TT_Plus, and type_.

bool Sundance::Token::isMinus   const [inline]
 

Definition at line 44 of file Token.h.

References Sundance::TT_Minus, and type_.

bool Sundance::Token::isTimes   const [inline]
 

Definition at line 45 of file Token.h.

References Sundance::TT_Times, and type_.

bool Sundance::Token::isDivide   const [inline]
 

Definition at line 46 of file Token.h.

References Sundance::TT_Divide, and type_.

bool Sundance::Token::isConstant   const [inline]
 

Definition at line 48 of file Token.h.

References Sundance::TT_Constant, and type_.

bool Sundance::Token::isName   const [inline]
 

Definition at line 49 of file Token.h.

References Sundance::TT_Name, and type_.

bool Sundance::Token::isEquality   const [inline]
 

Definition at line 51 of file Token.h.

References Sundance::TT_Equal, and type_.

bool Sundance::Token::isLessThan   const [inline]
 

Definition at line 52 of file Token.h.

References Sundance::TT_LessThan, and type_.

bool Sundance::Token::isGreaterThan   const [inline]
 

Definition at line 53 of file Token.h.

References Sundance::TT_GreaterThan, and type_.

bool Sundance::Token::isLessThanOrEqual   const [inline]
 

Definition at line 54 of file Token.h.

References Sundance::TT_LessThanOrEqual, and type_.

bool Sundance::Token::isGreaterThanOrEqual   const [inline]
 

Definition at line 55 of file Token.h.

References Sundance::TT_GreaterThanOrEqual, and type_.

bool Sundance::Token::isAnd   const [inline]
 

Definition at line 56 of file Token.h.

References Sundance::TT_And, and type_.

bool Sundance::Token::isOr   const [inline]
 

Definition at line 57 of file Token.h.

References Sundance::TT_Or, and type_.

bool Sundance::Token::isNot   const [inline]
 

Definition at line 58 of file Token.h.

References Sundance::TT_Not, and type_.

bool Sundance::Token::isNotEqual   const [inline]
 

Definition at line 59 of file Token.h.

References Sundance::TT_NotEqual, and type_.

bool Sundance::Token::isEnd   const [inline]
 

Definition at line 61 of file Token.h.

References Sundance::TT_End, and type_.

double Sundance::Token::value   const
 

const string& Sundance::Token::name   const
 

const string& Sundance::Token::tok   const [inline]
 

Definition at line 66 of file Token.h.

References tok_.

void Sundance::Token::print ostream &    os const [inline]
 

Definition at line 67 of file Token.h.

References tok_.

Referenced by Sundance::operator<<().


Member Data Documentation

string Sundance::Token::tok_ [private]
 

Definition at line 69 of file Token.h.

Referenced by print(), tok(), and Token().

TokenType Sundance::Token::type_ [private]
 

Definition at line 70 of file Token.h.

Referenced by isAnd(), isAssign(), isCloseBrace(), isCloseBracket(), isCloseParen(), isComma(), isConstant(), isDivide(), isEnd(), isEquality(), isGreaterThan(), isGreaterThanOrEqual(), isLessThan(), isLessThanOrEqual(), isMinus(), isName(), isNot(), isNotEqual(), isOpenBrace(), isOpenBracket(), isOpenParen(), isOr(), isPlus(), isTimes(), isUnknown(), and Token().


The documentation for this class was generated from the following file:
Contact:
Kevin Long (krlong@ca.sandia.gov)


Documentation generated by