A low-level input/scan token content. No defined constructors/destructors. All memory management is manual! More...
Public Types | |
enum | tokenType : unsigned char { LABEL = 0, SCALAR, VECTOR, WORD } |
Public Member Functions | |
void | setLabel (label val) |
void | setScalar (scalar val) |
void | setVector (scalar x, scalar y, scalar z) |
void | setVector (const vector &val) |
void | setWord (const word &val) |
void | destroy () |
Static Public Member Functions | |
static scanToken | null () |
Public Attributes | |
union { | |
Foam::label labelValue | |
Foam::scalar scalarValue | |
Foam::vector * vectorPtr | |
Foam::word * wordPtr | |
Foam::word * name_ | |
}; | |
tokenType | type_ |
A low-level input/scan token content. No defined constructors/destructors. All memory management is manual!
Definition at line 45 of file exprScanToken.H.
enum tokenType : unsigned char |
Enumerator | |
---|---|
LABEL | |
SCALAR | |
VECTOR | |
WORD |
Definition at line 48 of file exprScanToken.H.
|
static |
Definition at line 25 of file exprScanToken.C.
References scanToken::LABEL, scanToken::labelValue, and scanToken::type_.
void setLabel | ( | label | val | ) |
Definition at line 50 of file exprScanToken.C.
void setScalar | ( | scalar | val | ) |
Definition at line 57 of file exprScanToken.C.
void setVector | ( | scalar | x, |
scalar | y, | ||
scalar | z | ||
) |
Definition at line 64 of file exprScanToken.C.
void setVector | ( | const vector & | val | ) |
Definition at line 71 of file exprScanToken.C.
void setWord | ( | const word & | val | ) |
Definition at line 78 of file exprScanToken.C.
void destroy | ( | ) |
Definition at line 35 of file exprScanToken.C.
Foam::label labelValue |
Definition at line 63 of file exprScanToken.H.
Referenced by scanToken::null().
Foam::scalar scalarValue |
Definition at line 64 of file exprScanToken.H.
Foam::vector* vectorPtr |
Definition at line 65 of file exprScanToken.H.
Foam::word* wordPtr |
Definition at line 66 of file exprScanToken.H.
Foam::word* name_ |
Definition at line 67 of file exprScanToken.H.
union { ... } |
tokenType type_ |
Definition at line 71 of file exprScanToken.H.
Referenced by scanToken::null().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.