ARTS
1.0.222
|
This stores arbitrary token values and remembers the type. More...
#include <token.h>
Public Member Functions | |
TokVal () | |
Default Constructor. More... | |
TokVal (const char s[]) | |
To set TokVal from String (C - style). More... | |
TokVal (const String &s) | |
To set TokVal from String (C++ - style). More... | |
TokVal (Index n) | |
To set TokVal from an integer. More... | |
TokVal (Numeric x) | |
To set TokVal from a Numeric. More... | |
TokVal (ArrayOfString sv) | |
To set TokVal from an array of Strings. More... | |
TokVal (ArrayOfIndex nv) | |
To set TokVal from an array of integers. More... | |
TokVal (Vector xv) | |
To set TokVal from a Vector. More... | |
operator String () const | |
Return String. More... | |
operator Index () const | |
Return Index. More... | |
operator Numeric () const | |
Return Numeric. More... | |
operator ArrayOfString () const | |
Return array of Strings. More... | |
operator ArrayOfIndex () const | |
Return array of integers. More... | |
operator Vector () const | |
Return Vector. More... | |
Private Attributes | |
TokValType | mtype |
String | ms |
Index | mn |
Numeric | mx |
ArrayOfString | msv |
ArrayOfIndex | mnv |
Vector | mxv |
Friends | |
ostream & | operator<< (ostream &os, const TokVal &a) |
Output operator. More... | |
This stores arbitrary token values and remembers the type.
Only the correct type can be extracted again.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
TokVal::operator ArrayOfIndex | ( | ) | const |
TokVal::operator ArrayOfString | ( | ) | const |
|
friend |
|
private |
|
private |
|
private |