TokVal Class Reference
This stores arbitrary token values and remembers the type.
More...
#include <token.h>
List of all members.
Detailed Description
This stores arbitrary token values and remembers the type.
Only the correct type can be extracted again.
Definition at line 33 of file token.h.
Constructor & Destructor Documentation
TokVal::TokVal |
( |
|
) |
[inline] |
Default Constructor.
(Sets type to undefined_t)
Definition at line 37 of file token.h.
TokVal::TokVal |
( |
const char |
s[] |
) |
[inline] |
To set TokVal from String (C - style).
Definition at line 42 of file token.h.
TokVal::TokVal |
( |
const String & |
s |
) |
[inline] |
To set TokVal from String (C++ - style).
Definition at line 48 of file token.h.
TokVal::TokVal |
( |
Index |
n |
) |
[inline] |
TokVal::TokVal |
( |
Numeric |
x |
) |
[inline] |
To set TokVal from an array of Strings.
Definition at line 66 of file token.h.
To set TokVal from an array of integers.
Definition at line 72 of file token.h.
TokVal::TokVal |
( |
Vector |
xv |
) |
[inline] |
Member Function Documentation
TokVal::operator String |
( |
|
) |
const |
Return String.
Definition at line 33 of file token.cc.
TokVal::operator Index |
( |
|
) |
const |
Return Index.
Definition at line 38 of file token.cc.
Return Numeric.
Definition at line 43 of file token.cc.
Return array of Strings.
Definition at line 49 of file token.cc.
Return array of integers.
Definition at line 54 of file token.cc.
TokVal::operator Vector |
( |
|
) |
const |
Friends And Related Function Documentation
ostream& operator<< |
( |
ostream & |
os, |
|
|
const TokVal & |
a | |
|
) |
| | [friend] |
Output operator.
Definition at line 65 of file token.cc.
Member Data Documentation
The documentation for this class was generated from the following files: