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< T > | read (Istream &is, const dictionary &) |
Return-read with dictionary lookup. More... | |
void | write (Ostream &, const label val, const dictionary &) |
Write with dictionary lookup. More... | |
const entry * | findEntry (const dictionary &dict, const label val) |
Linear search for labelled entry, nullptr if not found. More... | |
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 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().
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.
Foam::label read | ( | Istream & | is, |
const dictionary & | dict | ||
) |
Return-read with dictionary lookup.
Definition at line 99 of file blockMeshTools.C.
List< T > read | ( | Istream & | is, |
const dictionary & | |||
) |
Return-read with dictionary lookup.
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().
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().