ARTS
2.2.66
|
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... | |
TokVal (Matrix m) | |
To set TokVal from a Matrix. 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... | |
operator Matrix () const | |
Return Matrix. More... | |
Private Attributes | |
TokValType | mtype |
String | ms |
Index | mn |
Numeric | mx |
ArrayOfString | msv |
ArrayOfIndex | mnv |
Vector | mxv |
Matrix | mm |
Friends | |
std::ostream & | operator<< (std::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 |
|
inline |
TokVal::operator ArrayOfIndex | ( | ) | const |
TokVal::operator ArrayOfString | ( | ) | const |
TokVal::operator Index | ( | ) | const |
TokVal::operator Matrix | ( | ) | const |
TokVal::operator Numeric | ( | ) | const |
TokVal::operator String | ( | ) | const |
TokVal::operator Vector | ( | ) | const |
|
friend |
Output operator.
Referenced by TokVal().
|
private |
Definition at line 101 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 96 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 99 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 95 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 98 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 94 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 97 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 100 of file token.h.
Referenced by operator<<().