36 #ifndef Foam_expressions_scanToken_H 37 #define Foam_expressions_scanToken_H 106 return (
type_ == tokenType::VECTOR ||
type_ == tokenType::WORD);
tokenType type_
The token type.
bool is_pointer() const noexcept
True if a pointer type.
A low-level input/scan token content. No defined constructors/destructors. All memory management is m...
void setVector(scalar x, scalar y, scalar z)
Assign type/value to be VECTOR. Does not call destroy().
A class for handling words, derived from Foam::string.
void setLabel(label val)
Assign type/value to be LABEL. Does not call destroy().
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
static scanToken null()
Return a null token (label = 0) - in lieu of a default constructor.
void destroy()
Manual deletion of pointer types.
tokenType
Tagged union types.
void setScalar(scalar val)
Assign type/value to be SCALAR. Does not call destroy().
void setWord(const word &val)
Assign type/value to be WORD (name). Does not call destroy().