Foam::blockMeshTools Namespace Reference

Tools for parsing label(List) with dictionary lookup. More...

Functions

void read (Istream &, label &val, const dictionary &)
 In-place read with dictionary lookup. More...
 
template<class T >
void read (Istream &, List< T > &list, const dictionary &)
 In-place read with dictionary lookup. More...
 
label read (Istream &, const dictionary &)
 Return-read with dictionary lookup. More...
 
template<class T >
List< Tread (Istream &is, const dictionary &)
 Return-read with dictionary lookup. More...
 
void write (Ostream &, const label val, const dictionary &)
 Write with dictionary lookup. More...
 
const entryfindEntry (const dictionary &dict, const label val)
 Linear search for labelled entry, nullptr if not found. More...
 

Detailed Description

Tools for parsing label(List) with dictionary lookup.

Source files

Function Documentation

◆ read() [1/4]

void read ( Istream is,
label &  val,
const dictionary dict 
)

In-place read with dictionary lookup.

Definition at line 56 of file blockMeshTools.C.

References dict, Foam::exit(), IOstream::fatalCheck(), Foam::FatalIOError, FatalIOErrorInFunction, FUNCTION_NAME, token::info(), token::isLabel(), token::isWord(), token::labelToken(), Foam::readLabel(), entry::stream(), and token::wordToken().

Referenced by read(), and blockVertex::read().

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

◆ read() [2/4]

void read ( Istream is,
List< T > &  list,
const dictionary dict 
)

In-place read with dictionary lookup.

Definition at line 32 of file blockMeshToolsTemplates.C.

References LList< LListBase, T >::append(), dict, Foam::exit(), IOstream::fatalCheck(), Foam::FatalIOError, FatalIOErrorInFunction, FUNCTION_NAME, token::info(), token::isLabel(), token::isPunctuation(), token::labelToken(), Foam::nl, Istream::putBack(), read(), Istream::readBeginList(), Istream::readEndList(), List< T >::resize(), and T.

Here is the call graph for this function:

◆ read() [3/4]

Foam::label read ( Istream is,
const dictionary dict 
)

Return-read with dictionary lookup.

Definition at line 99 of file blockMeshTools.C.

References dict, and read().

Here is the call graph for this function:

◆ read() [4/4]

List< T > read ( Istream is,
const dictionary  
)

Return-read with dictionary lookup.

◆ write()

void write ( Ostream os,
const label  val,
const dictionary dict 
)

Write with dictionary lookup.

Definition at line 111 of file blockMeshTools.C.

References dict, e, entry::keyword(), os(), and Foam::resolveLabel().

Referenced by blockDescriptor::write(), and blockVertex::write().

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

◆ findEntry()

const Foam::entry * findEntry ( const dictionary dict,
const label  val 
)

Linear search for labelled entry, nullptr if not found.

Definition at line 131 of file blockMeshTools.C.

References dict, e, and Foam::resolveLabel().

Here is the call graph for this function: