ARTS
2.3.1285(git:92a29ea9-dirty)
|
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 121 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 116 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 119 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 115 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 118 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 114 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 117 of file token.h.
Referenced by operator<<().
|
private |
Definition at line 120 of file token.h.
Referenced by operator<<().