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 40 of file token.h.
TokVal::TokVal |
( |
const String & |
s |
) |
[inline] |
To set TokVal from String (C++ - style).
Definition at line 44 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 56 of file token.h.
To set TokVal from an array of integers.
Definition at line 60 of file token.h.
TokVal::TokVal |
( |
Vector |
xv |
) |
[inline] |
Member Function Documentation
TokVal::operator String |
( |
|
) |
const |
TokVal::operator Index |
( |
|
) |
const |
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: