Tools for parsing label(List) with dictionary lookup. More...
Functions | |
| void | read (Istream &, label &val, const dictionary &) |
| In-place read with dictionary lookup. | |
| template<class T> | |
| void | read (Istream &, List< T > &list, const dictionary &) |
| In-place read with dictionary lookup. | |
| label | read (Istream &, const dictionary &) |
| Return-read with dictionary lookup. | |
| template<class T> | |
| List< T > | read (Istream &is, const dictionary &) |
| Return-read with dictionary lookup. | |
| void | write (Ostream &, const label val, const dictionary &) |
| Write with dictionary lookup. | |
| const entry * | findEntry (const dictionary &dict, const label val) |
| Linear search for labelled entry, nullptr if not found. | |
Tools for parsing label(List) with dictionary lookup.
| void read | ( | Istream & | is, |
| label & | val, | ||
| const dictionary & | dict ) |
In-place read with dictionary lookup.
Definition at line 43 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(), keyType::REGEX_RECURSIVE, entry::stream(), and token::wordToken().
Referenced by blockDescriptor::blockDescriptor(), read(), read(), and blockVertex::read().


| void read | ( | Istream & | is, |
| List< T > & | list, | ||
| const dictionary & | dict ) |
In-place read with dictionary lookup.
Definition at line 25 of file blockMeshToolsTemplates.C.
References token::BEGIN_LIST, DynamicList< T, SizeMin >::clear(), dict, DynamicList< T, SizeMin >::emplace_back(), token::END_LIST, 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(), and List< T >::resize_nocopy().

| Foam::label read | ( | Istream & | is, |
| const dictionary & | dict ) |
Return-read with dictionary lookup.
Definition at line 86 of file blockMeshTools.C.

| List< T > read | ( | Istream & | is, |
| const dictionary & | ) |
Return-read with dictionary lookup.
References dict.
| void write | ( | Ostream & | os, |
| const label | val, | ||
| const dictionary & | dict ) |
Write with dictionary lookup.
Definition at line 98 of file blockMeshTools.C.
References dict, e, entry::keyword(), os(), and Foam::resolveLabel().
Referenced by blockDescriptor::write(), and blockVertex::write().


| const Foam::entry * findEntry | ( | const dictionary & | dict, |
| const label | val ) |
Linear search for labelled entry, nullptr if not found.
Definition at line 118 of file blockMeshTools.C.
References dict, e, and Foam::resolveLabel().
