Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
dimensionSet::tokeniser Class Reference
Collaboration diagram for dimensionSet::tokeniser:
Collaboration graph
[legend]

Public Member Functions

 tokeniser (Istream &)
 
Istreamstream ()
 
bool hasToken () const
 
token nextToken ()
 
void putBack (const token &)
 
void splitWord (const word &)
 

Static Public Member Functions

static bool valid (char c)
 
static label priority (const token &t)
 

Private Member Functions

void push (const token &)
 
token pop ()
 
void unpop (const token &)
 

Private Attributes

Istreamis_
 
List< tokentokens_
 
label start_
 
label size_
 

Detailed Description

Definition at line 150 of file dimensionSet.H.

Constructor & Destructor Documentation

◆ tokeniser()

tokeniser ( Istream is)

Definition at line 39 of file dimensionSetIO.C.

Member Function Documentation

◆ push()

void push ( const token t)
private

Definition at line 50 of file dimensionSetIO.C.

◆ pop()

Foam::token pop ( )
private

Definition at line 65 of file dimensionSetIO.C.

◆ unpop()

void unpop ( const token t)
private

Definition at line 74 of file dimensionSetIO.C.

◆ stream()

Istream& stream ( )
inline

Definition at line 180 of file dimensionSet.H.

References dimensionSet::tokeniser::is_.

Referenced by dimensionSet::parse().

Here is the caller graph for this function:

◆ hasToken()

bool hasToken ( ) const

Definition at line 82 of file dimensionSetIO.C.

Referenced by dimensionSet::parse().

Here is the caller graph for this function:

◆ nextToken()

Foam::token nextToken ( )

Definition at line 182 of file dimensionSetIO.C.

References token::isWord(), and token::wordToken().

Referenced by dimensionSet::parse().

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

◆ putBack()

void putBack ( const token t)

Definition at line 204 of file dimensionSetIO.C.

Referenced by dimensionSet::parse().

Here is the caller graph for this function:

◆ splitWord()

void splitWord ( const word w)

Definition at line 134 of file dimensionSetIO.C.

References Foam::readScalar(), token::SPACE, token::SUBTRACT, and w().

Here is the call graph for this function:

◆ valid()

bool valid ( char  c)
static

Definition at line 88 of file dimensionSetIO.C.

References Foam::constant::universal::c, and Foam::isspace().

Here is the call graph for this function:

◆ priority()

Foam::label priority ( const token t)
static

Definition at line 109 of file dimensionSetIO.C.

References token::DIVIDE, token::isPunctuation(), token::MULTIPLY, and token::pToken().

Referenced by dimensionSet::parse().

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

Field Documentation

◆ is_

Istream& is_
private

Definition at line 154 of file dimensionSet.H.

Referenced by dimensionSet::tokeniser::stream().

◆ tokens_

List<token> tokens_
private

Definition at line 156 of file dimensionSet.H.

◆ start_

label start_
private

Definition at line 158 of file dimensionSet.H.

◆ size_

label size_
private

Definition at line 160 of file dimensionSet.H.


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