token Class Reference

A token holds items read from Istream. More...

Collaboration diagram for token:

Classes

class  compound
 Abstract base class for complex tokens. More...
 
class  Compound
 A templated class for holding compound tokens. More...
 

Public Types

enum  tokenType : char {
  UNDEFINED = 0 , PUNCTUATION = char(128) , WORD , FUNCTIONNAME ,
  VARIABLE , STRING , VERBATIMSTRING , INTEGER_32 ,
  INTEGER_64 , UNSIGNED_INTEGER_32 , UNSIGNED_INTEGER_64 , FLOAT_SCALAR ,
  DOUBLE_SCALAR , LONG_DOUBLE_SCALAR , COMPOUND , ERROR
}
 Enumeration defining the types of token. More...
 
enum  punctuationToken : char {
  NULL_TOKEN = '\0' , SPACE = ' ' , TAB = '\t' , NL = '\n' ,
  END_STATEMENT = ';' , BEGIN_LIST = '(' , END_LIST = ')' , BEGIN_SQR = '[' ,
  END_SQR = ']' , BEGIN_BLOCK = '{' , END_BLOCK = '}' , COLON = ':' ,
  COMMA = ',' , HASH = '#' , BEGIN_STRING = '"' , END_STRING = BEGIN_STRING ,
  ASSIGN = '=' , ADD = '+' , SUBTRACT = '-' , MULTIPLY = '*' ,
  DIVIDE = '/'
}
 Standard punctuation tokens. More...
 

Public Member Functions

 token ()
 Construct null. More...
 
 token (const token &)
 Copy constructor. More...
 
 token (punctuationToken, label lineNumber=0)
 Construct punctuation character token. More...
 
 token (const word &, label lineNumber=0)
 Construct word token. More...
 
 token (const string &, label lineNumber=0)
 Construct string token. More...
 
 token (const keyType &, label lineNumber=0)
 Construct keyType token. More...
 
 token (const verbatimString &, label lineNumber=0)
 Construct verbatimString token. More...
 
 token (const int32_t, label lineNumber=0)
 Construct 32-bit integer token. More...
 
 token (const int64_t, label lineNumber=0)
 Construct 64-bit integer token. More...
 
 token (const uint32_t, label lineNumber=0)
 Construct unsigned 32-bit integer token. More...
 
 token (const uint64_t, label lineNumber=0)
 Construct unsigned 64-bit integer token. More...
 
 token (const floatScalar, label lineNumber=0)
 Construct floatScalar token. More...
 
 token (const doubleScalar, label lineNumber=0)
 Construct doubleScalar token. More...
 
 token (const longDoubleScalar, label lineNumber=0)
 Construct longDoubleScalar token. More...
 
 token (Istream &)
 Construct from Istream. More...
 
 ~token ()
 Destructor. More...
 
tokenType type () const
 
tokenTypetype ()
 
bool good () const
 
bool undefined () const
 
bool error () const
 
const wordtypeName () const
 Return the type name of the token. More...
 
bool isPunctuation () const
 
punctuationToken pToken () const
 
bool isWord () const
 
const wordwordToken () const
 
bool isFunctionName () const
 
const functionNamefunctionNameToken () const
 
bool isVariable () const
 
const variablevariableToken () const
 
bool isString () const
 
const stringstringToken () const
 
bool isVerbatimString () const
 
const verbatimStringverbatimStringToken () const
 
bool isAnyString () const
 
const stringanyStringToken () const
 
bool isInteger32 () const
 
int32_t integer32Token () const
 
bool isInteger64 () const
 
int64_t integer64Token () const
 
bool isUnsignedInteger32 () const
 
uint32_t unsignedInteger32Token () const
 
bool isUnsignedInteger64 () const
 
uint64_t unsignedInteger64Token () const
 
bool isLabel () const
 
label labelToken () const
 
bool isULabel () const
 
uLabel uLabelToken () const
 
bool isFloatScalar () const
 
floatScalar floatScalarToken () const
 
bool isDoubleScalar () const
 
doubleScalar doubleScalarToken () const
 
bool isLongDoubleScalar () const
 
longDoubleScalar longDoubleScalarToken () const
 
bool isScalar () const
 
scalar scalarToken () const
 
bool isNumber () const
 
scalar number () const
 
bool isCompound () const
 
const compoundcompoundToken () const
 
compoundtransferCompoundToken (const Istream &is)
 
label lineNumber () const
 
labellineNumber ()
 
void setBad ()
 Set bad. More...
 
InfoProxy< tokeninfo () const
 Return info proxy. More...
 
void operator= (const token &)
 
void operator= (const punctuationToken)
 
void operator= (word *)
 
void operator= (const word &)
 
void operator= (functionName *)
 
void operator= (const functionName &)
 
void operator= (variable *)
 
void operator= (const variable &)
 
void operator= (string *)
 
void operator= (const string &)
 
void operator= (verbatimString *)
 
void operator= (const verbatimString &)
 
void operator= (const int32_t)
 
void operator= (const int64_t)
 
void operator= (const uint32_t)
 
void operator= (const uint64_t)
 
void operator= (const floatScalar)
 
void operator= (const doubleScalar)
 
void operator= (const longDoubleScalar)
 
void operator= (compound *)
 
bool operator== (const token &) const
 
bool operator== (const punctuationToken) const
 
bool operator== (const word &) const
 
bool operator== (const functionName &) const
 
bool operator== (const variable &) const
 
bool operator== (const string &) const
 
bool operator== (const verbatimString &) const
 
bool operator== (const int32_t) const
 
bool operator== (const int64_t) const
 
bool operator== (const uint32_t) const
 
bool operator== (const uint64_t) const
 
bool operator== (const floatScalar) const
 
bool operator== (const doubleScalar) const
 
bool operator== (const longDoubleScalar) const
 
bool operator!= (const token &) const
 
bool operator!= (const punctuationToken) const
 
bool operator!= (const word &) const
 
bool operator!= (const functionName &) const
 
bool operator!= (const variable &) const
 
bool operator!= (const string &) const
 
bool operator!= (const verbatimString &) const
 
bool operator!= (const int32_t) const
 
bool operator!= (const int64_t) const
 
bool operator!= (const uint32_t) const
 
bool operator!= (const uint64_t) const
 
bool operator!= (const floatScalar) const
 
bool operator!= (const doubleScalar) const
 
bool operator!= (const longDoubleScalar) const
 

Static Public Attributes

static token undefinedToken
 Static undefined token. More...
 

Friends

Istreamoperator>> (Istream &, token &)
 
Ostreamoperator<< (Ostream &, const token &)
 
Ostreamoperator<< (Ostream &, const punctuationToken &)
 
ostream & operator<< (ostream &, const punctuationToken &)
 
ostream & operator<< (ostream &, const InfoProxy< token > &)
 

Detailed Description

A token holds items read from Istream.

Source files

Definition at line 73 of file token.H.

Member Enumeration Documentation

◆ tokenType

enum tokenType : char

Enumeration defining the types of token.

Enumerator
UNDEFINED 
PUNCTUATION 
WORD 
FUNCTIONNAME 
VARIABLE 
STRING 
VERBATIMSTRING 
INTEGER_32 
INTEGER_64 
UNSIGNED_INTEGER_32 
UNSIGNED_INTEGER_64 
FLOAT_SCALAR 
DOUBLE_SCALAR 
LONG_DOUBLE_SCALAR 
COMPOUND 
ERROR 

Definition at line 79 of file token.H.

◆ punctuationToken

enum punctuationToken : char

Standard punctuation tokens.

Enumerator
NULL_TOKEN 
SPACE 
TAB 
NL 
END_STATEMENT 
BEGIN_LIST 
END_LIST 
BEGIN_SQR 
END_SQR 
BEGIN_BLOCK 
END_BLOCK 
COLON 
COMMA 
HASH 
BEGIN_STRING 
END_STRING 
ASSIGN 
ADD 
SUBTRACT 
MULTIPLY 
DIVIDE 

Definition at line 102 of file token.H.

Constructor & Destructor Documentation

◆ token() [1/15]

token ( )
inline

Construct null.

Definition at line 75 of file tokenI.H.

◆ token() [2/15]

◆ token() [3/15]

token ( punctuationToken  p,
label  lineNumber = 0 
)
inline

Construct punctuation character token.

Definition at line 157 of file tokenI.H.

◆ token() [4/15]

token ( const word w,
label  lineNumber = 0 
)
inline

Construct word token.

Definition at line 165 of file tokenI.H.

◆ token() [5/15]

token ( const string s,
label  lineNumber = 0 
)
inline

Construct string token.

Definition at line 173 of file tokenI.H.

◆ token() [6/15]

◆ token() [7/15]

token ( const verbatimString vs,
label  lineNumber = 0 
)
inline

Construct verbatimString token.

Definition at line 225 of file tokenI.H.

◆ token() [8/15]

token ( const int32_t  l,
label  lineNumber = 0 
)
inline

Construct 32-bit integer token.

Definition at line 233 of file tokenI.H.

◆ token() [9/15]

token ( const int64_t  l,
label  lineNumber = 0 
)
inline

Construct 64-bit integer token.

Definition at line 241 of file tokenI.H.

◆ token() [10/15]

token ( const uint32_t  l,
label  lineNumber = 0 
)
inline

Construct unsigned 32-bit integer token.

Definition at line 249 of file tokenI.H.

◆ token() [11/15]

token ( const uint64_t  l,
label  lineNumber = 0 
)
inline

Construct unsigned 64-bit integer token.

Definition at line 257 of file tokenI.H.

◆ token() [12/15]

token ( const floatScalar  s,
label  lineNumber = 0 
)
inline

Construct floatScalar token.

Definition at line 265 of file tokenI.H.

◆ token() [13/15]

token ( const doubleScalar  s,
label  lineNumber = 0 
)
inline

Construct doubleScalar token.

Definition at line 273 of file tokenI.H.

◆ token() [14/15]

token ( const longDoubleScalar  s,
label  lineNumber = 0 
)
inline

Construct longDoubleScalar token.

Definition at line 281 of file tokenI.H.

◆ token() [15/15]

token ( Istream is)

Construct from Istream.

Definition at line 34 of file tokenIO.C.

References Istream::read().

Here is the call graph for this function:

◆ ~token()

~token ( )
inline

Destructor.

Definition at line 291 of file tokenI.H.

References clear().

Here is the call graph for this function:

Member Function Documentation

◆ type() [1/2]

Foam::token::tokenType type ( ) const
inline

Definition at line 299 of file tokenI.H.

Referenced by Foam::operator<<(), and Ostream::write().

Here is the caller graph for this function:

◆ type() [2/2]

Foam::token::tokenType & type ( )
inline

Definition at line 304 of file tokenI.H.

◆ good()

bool good ( ) const
inline

Definition at line 309 of file tokenI.H.

Referenced by codeBlockEntry::execute(), Foam::operator>>(), primitiveEntry::read(), functionEntry::readArgOrList(), dictionary::tokens(), and OTstream::write().

Here is the caller graph for this function:

◆ undefined()

bool undefined ( ) const
inline

Definition at line 314 of file tokenI.H.

◆ error()

bool error ( ) const
inline

Definition at line 319 of file tokenI.H.

◆ typeName()

const Foam::word & typeName ( ) const

Return the type name of the token.

Definition at line 101 of file token.C.

References token::COMPOUND, token::PUNCTUATION, and token::UNDEFINED.

◆ isPunctuation()

◆ pToken()

◆ isWord()

◆ wordToken()

◆ isFunctionName()

bool isFunctionName ( ) const
inline

Definition at line 360 of file tokenI.H.

Referenced by ifeqEntry::execute(), codeBlockEntry::execute(), keyType::operator=(), and Foam::operator>>().

Here is the caller graph for this function:

◆ functionNameToken()

const Foam::functionName & functionNameToken ( ) const
inline

Definition at line 365 of file tokenI.H.

References functionName::null, and functionName::typeName.

Referenced by ifeqEntry::execute(), codeBlockEntry::execute(), Foam::operator<<(), keyType::operator=(), Foam::operator>>(), and Ostream::write().

Here is the caller graph for this function:

◆ isVariable()

bool isVariable ( ) const
inline

Definition at line 378 of file tokenI.H.

Referenced by keyType::operator=(), and Foam::operator>>().

Here is the caller graph for this function:

◆ variableToken()

const Foam::variable & variableToken ( ) const
inline

Definition at line 383 of file tokenI.H.

References variable::null, and variable::typeName.

Referenced by Foam::operator<<(), keyType::operator=(), Foam::operator>>(), and Ostream::write().

Here is the caller graph for this function:

◆ isString()

bool isString ( ) const
inline

◆ stringToken()

const Foam::string & stringToken ( ) const
inline

Definition at line 401 of file tokenI.H.

References string::null, and string::typeName.

Referenced by Foam::operator<<(), keyType::operator=(), Foam::operator>>(), and Ostream::write().

Here is the caller graph for this function:

◆ isVerbatimString()

bool isVerbatimString ( ) const
inline

Definition at line 414 of file tokenI.H.

Referenced by streamEntry::codeString(), Foam::operator>>(), and streamEntry::resultStream().

Here is the caller graph for this function:

◆ verbatimStringToken()

const Foam::verbatimString & verbatimStringToken ( ) const
inline

Definition at line 419 of file tokenI.H.

References verbatimString::null, and verbatimString::typeName.

Referenced by Foam::operator<<(), Foam::operator>>(), and Ostream::write().

Here is the caller graph for this function:

◆ isAnyString()

bool isAnyString ( ) const
inline

Definition at line 432 of file tokenI.H.

◆ anyStringToken()

const Foam::string & anyStringToken ( ) const
inline

Definition at line 444 of file tokenI.H.

References string::null, and string::typeName.

Referenced by streamEntry::codeString(), functionEntry::readArgList(), and streamEntry::resultStream().

Here is the caller graph for this function:

◆ isInteger32()

bool isInteger32 ( ) const
inline

Definition at line 473 of file tokenI.H.

Referenced by Foam::operator>>().

Here is the caller graph for this function:

◆ integer32Token()

int32_t integer32Token ( ) const
inline

Definition at line 485 of file tokenI.H.

Referenced by Foam::operator<<(), Foam::operator>>(), and Ostream::write().

Here is the caller graph for this function:

◆ isInteger64()

bool isInteger64 ( ) const
inline

Definition at line 510 of file tokenI.H.

Referenced by Foam::operator>>().

Here is the caller graph for this function:

◆ integer64Token()

int64_t integer64Token ( ) const
inline

Definition at line 519 of file tokenI.H.

Referenced by Foam::operator<<(), Foam::operator>>(), and Ostream::write().

Here is the caller graph for this function:

◆ isUnsignedInteger32()

bool isUnsignedInteger32 ( ) const
inline

Definition at line 544 of file tokenI.H.

Referenced by Foam::operator>>().

Here is the caller graph for this function:

◆ unsignedInteger32Token()

uint32_t unsignedInteger32Token ( ) const
inline

Definition at line 556 of file tokenI.H.

Referenced by Foam::operator<<(), Foam::operator>>(), and Ostream::write().

Here is the caller graph for this function:

◆ isUnsignedInteger64()

bool isUnsignedInteger64 ( ) const
inline

Definition at line 581 of file tokenI.H.

Referenced by codeBlockDictEntry::codeBlockDictEntry(), codeBlockStreamEntry::codeBlockStreamEntry(), and Foam::operator>>().

Here is the caller graph for this function:

◆ unsignedInteger64Token()

uint64_t unsignedInteger64Token ( ) const
inline

Definition at line 590 of file tokenI.H.

Referenced by codeBlockDictEntry::codeBlockDictEntry(), codeBlockStreamEntry::codeBlockStreamEntry(), Foam::operator<<(), and Foam::operator>>().

Here is the caller graph for this function:

◆ isLabel()

◆ labelToken()

◆ isULabel()

bool isULabel ( ) const
inline

Definition at line 659 of file tokenI.H.

References Foam::uLabelMax.

◆ uLabelToken()

Foam::uLabel uLabelToken ( ) const
inline

Definition at line 678 of file tokenI.H.

◆ isFloatScalar()

bool isFloatScalar ( ) const
inline

Definition at line 703 of file tokenI.H.

◆ floatScalarToken()

Foam::floatScalar floatScalarToken ( ) const
inline

Definition at line 708 of file tokenI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ isDoubleScalar()

bool isDoubleScalar ( ) const
inline

Definition at line 722 of file tokenI.H.

◆ doubleScalarToken()

Foam::doubleScalar doubleScalarToken ( ) const
inline

Definition at line 727 of file tokenI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ isLongDoubleScalar()

bool isLongDoubleScalar ( ) const
inline

Definition at line 741 of file tokenI.H.

◆ longDoubleScalarToken()

Foam::longDoubleScalar longDoubleScalarToken ( ) const
inline

Definition at line 746 of file tokenI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ isScalar()

bool isScalar ( ) const
inline

Definition at line 760 of file tokenI.H.

◆ scalarToken()

Foam::scalar scalarToken ( ) const
inline

Definition at line 768 of file tokenI.H.

◆ isNumber()

bool isNumber ( ) const
inline

◆ number()

Foam::scalar number ( ) const
inline

◆ isCompound()

bool isCompound ( ) const
inline

Definition at line 828 of file tokenI.H.

Referenced by genericFvPatchField< Type >::genericFvPatchField(), and genericPointPatchField< Type >::genericPointPatchField().

Here is the caller graph for this function:

◆ compoundToken()

const Foam::token::compound & compoundToken ( ) const
inline

Definition at line 833 of file tokenI.H.

Referenced by genericFvPatchField< Type >::genericFvPatchField(), dictionary::lookupCompoundScoped(), and Foam::operator<<().

Here is the caller graph for this function:

◆ transferCompoundToken()

Foam::token::compound & transferCompoundToken ( const Istream is)

Definition at line 128 of file token.C.

References Foam::abort(), Foam::FatalIOError, and FatalIOErrorInFunction.

Here is the call graph for this function:

◆ lineNumber() [1/2]

◆ lineNumber() [2/2]

Foam::label & lineNumber ( )
inline

Definition at line 852 of file tokenI.H.

◆ setBad()

void setBad ( )
inline

Set bad.

Definition at line 858 of file tokenI.H.

References clear().

Referenced by UIPstream::read(), and ISstream::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ info()

◆ operator=() [1/20]

◆ operator=() [2/20]

void operator= ( const punctuationToken  p)
inline

Definition at line 943 of file tokenI.H.

References clear(), and p.

Here is the call graph for this function:

◆ operator=() [3/20]

void operator= ( word wPtr)
inline

Definition at line 950 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator=() [4/20]

void operator= ( const word w)
inline

Definition at line 957 of file tokenI.H.

◆ operator=() [5/20]

void operator= ( functionName fnPtr)
inline

Definition at line 962 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator=() [6/20]

void operator= ( const functionName fn)
inline

Definition at line 969 of file tokenI.H.

◆ operator=() [7/20]

void operator= ( variable vPtr)
inline

Definition at line 974 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator=() [8/20]

void operator= ( const variable v)
inline

Definition at line 981 of file tokenI.H.

◆ operator=() [9/20]

void operator= ( string sPtr)
inline

Definition at line 986 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator=() [10/20]

void operator= ( const string s)
inline

Definition at line 993 of file tokenI.H.

References s().

Here is the call graph for this function:

◆ operator=() [11/20]

void operator= ( verbatimString vsPtr)
inline

Definition at line 998 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator=() [12/20]

void operator= ( const verbatimString vs)
inline

Definition at line 1005 of file tokenI.H.

◆ operator=() [13/20]

void operator= ( const int32_t  l)
inline

Definition at line 1010 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator=() [14/20]

void operator= ( const int64_t  l)
inline

Definition at line 1017 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator=() [15/20]

void operator= ( const uint32_t  l)
inline

Definition at line 1024 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator=() [16/20]

void operator= ( const uint64_t  l)
inline

Definition at line 1031 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator=() [17/20]

void operator= ( const floatScalar  s)
inline

Definition at line 1038 of file tokenI.H.

References clear(), and s().

Here is the call graph for this function:

◆ operator=() [18/20]

void operator= ( const doubleScalar  s)
inline

Definition at line 1045 of file tokenI.H.

References clear(), and s().

Here is the call graph for this function:

◆ operator=() [19/20]

void operator= ( const longDoubleScalar  s)
inline

Definition at line 1052 of file tokenI.H.

References clear(), and s().

Here is the call graph for this function:

◆ operator=() [20/20]

void operator= ( compound cPtr)
inline

Definition at line 1059 of file tokenI.H.

References clear().

Here is the call graph for this function:

◆ operator==() [1/14]

◆ operator==() [2/14]

bool operator== ( const punctuationToken  p) const
inline

Definition at line 1132 of file tokenI.H.

References p.

◆ operator==() [3/14]

bool operator== ( const word w) const
inline

Definition at line 1137 of file tokenI.H.

◆ operator==() [4/14]

bool operator== ( const functionName fn) const
inline

Definition at line 1142 of file tokenI.H.

◆ operator==() [5/14]

bool operator== ( const variable v) const
inline

Definition at line 1147 of file tokenI.H.

◆ operator==() [6/14]

bool operator== ( const string s) const
inline

Definition at line 1152 of file tokenI.H.

References s().

Here is the call graph for this function:

◆ operator==() [7/14]

bool operator== ( const verbatimString vs) const
inline

Definition at line 1157 of file tokenI.H.

◆ operator==() [8/14]

bool operator== ( const int32_t  l) const
inline

Definition at line 1162 of file tokenI.H.

◆ operator==() [9/14]

bool operator== ( const int64_t  l) const
inline

Definition at line 1167 of file tokenI.H.

◆ operator==() [10/14]

bool operator== ( const uint32_t  l) const
inline

Definition at line 1172 of file tokenI.H.

◆ operator==() [11/14]

bool operator== ( const uint64_t  l) const
inline

Definition at line 1177 of file tokenI.H.

◆ operator==() [12/14]

bool operator== ( const floatScalar  s) const
inline

Definition at line 1182 of file tokenI.H.

References Foam::equal(), and s().

Here is the call graph for this function:

◆ operator==() [13/14]

bool operator== ( const doubleScalar  s) const
inline

Definition at line 1187 of file tokenI.H.

References Foam::equal(), and s().

Here is the call graph for this function:

◆ operator==() [14/14]

bool operator== ( const longDoubleScalar  s) const
inline

Definition at line 1192 of file tokenI.H.

References Foam::equal(), and s().

Here is the call graph for this function:

◆ operator!=() [1/14]

bool operator!= ( const token t) const
inline

Definition at line 1200 of file tokenI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [2/14]

bool operator!= ( const punctuationToken  p) const
inline

Definition at line 1205 of file tokenI.H.

References Foam::operator==(), and p.

Here is the call graph for this function:

◆ operator!=() [3/14]

bool operator!= ( const word w) const
inline

Definition at line 1210 of file tokenI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [4/14]

bool operator!= ( const functionName fn) const
inline

Definition at line 1215 of file tokenI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [5/14]

bool operator!= ( const variable v) const
inline

Definition at line 1220 of file tokenI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [6/14]

bool operator!= ( const string s) const
inline

Definition at line 1225 of file tokenI.H.

References Foam::operator==(), and s().

Here is the call graph for this function:

◆ operator!=() [7/14]

bool operator!= ( const verbatimString vs) const
inline

Definition at line 1230 of file tokenI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [8/14]

bool operator!= ( const int32_t  l) const
inline

Definition at line 1235 of file tokenI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [9/14]

bool operator!= ( const int64_t  l) const
inline

Definition at line 1240 of file tokenI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [10/14]

bool operator!= ( const uint32_t  l) const
inline

Definition at line 1245 of file tokenI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [11/14]

bool operator!= ( const uint64_t  l) const
inline

Definition at line 1250 of file tokenI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [12/14]

bool operator!= ( const floatScalar  s) const
inline

Definition at line 1255 of file tokenI.H.

References Foam::operator==(), and s().

Here is the call graph for this function:

◆ operator!=() [13/14]

bool operator!= ( const doubleScalar  s) const
inline

Definition at line 1260 of file tokenI.H.

References Foam::operator==(), and s().

Here is the call graph for this function:

◆ operator!=() [14/14]

bool operator!= ( const longDoubleScalar  s) const
inline

Definition at line 1265 of file tokenI.H.

References Foam::operator==(), and s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
token  
)
friend

◆ operator<< [1/4]

Ostream& operator<< ( Ostream ,
const token  
)
friend

◆ operator<< [2/4]

Ostream& operator<< ( Ostream ,
const punctuationToken  
)
friend

◆ operator<< [3/4]

ostream& operator<< ( ostream &  ,
const punctuationToken  
)
friend

◆ operator<< [4/4]

ostream& operator<< ( ostream &  ,
const InfoProxy< token > &   
)
friend

Member Data Documentation

◆ undefinedToken

token undefinedToken
static

Static undefined token.

Definition at line 241 of file token.H.

Referenced by Istream::peekBack(), and ITstream::read().

◆ punctuationToken_

punctuationToken punctuationToken_

Definition at line 257 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ wordTokenPtr_

word* wordTokenPtr_

Definition at line 258 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ functionNameTokenPtr_

functionName* functionNameTokenPtr_

Definition at line 259 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ variableTokenPtr_

variable* variableTokenPtr_

Definition at line 260 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ stringTokenPtr_

string* stringTokenPtr_

Definition at line 261 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ verbatimStringTokenPtr_

verbatimString* verbatimStringTokenPtr_

Definition at line 262 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ integer32Token_

int32_t integer32Token_

Definition at line 263 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ integer64Token_

int64_t integer64Token_

Definition at line 264 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ unsignedInteger32Token_

uint32_t unsignedInteger32Token_

Definition at line 265 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ unsignedInteger64Token_

uint64_t unsignedInteger64Token_

Definition at line 266 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ floatScalarToken_

floatScalar floatScalarToken_

Definition at line 267 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ doubleScalarToken_

doubleScalar doubleScalarToken_

Definition at line 268 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ longDoubleScalarTokenPtr_

longDoubleScalar* longDoubleScalarTokenPtr_

Definition at line 269 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().

◆ compoundTokenPtr_

compound* compoundTokenPtr_
mutable

Definition at line 270 of file token.H.

Referenced by token::operator=(), token::operator==(), and token::token().


The documentation for this class was generated from the following files: