41 const word Function2Type(coeffsDict.
lookup(
"type"));
43 typename dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(Function2Type);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown Function2 type "
50 << Function2Type <<
" for Function2 "
52 <<
"Valid Function2 types are:" <<
nl
53 << dictionaryConstructorTablePtr_->sortedToc() <<
nl
57 return cstrIter()(
name, coeffsDict);
79 typename dictionaryConstructorTable::iterator cstrIter =
80 dictionaryConstructorTablePtr_->find(Function2Type);
82 if (cstrIter == dictionaryConstructorTablePtr_->end())
85 <<
"Unknown Function2 type "
86 << Function2Type <<
" for Function2 "
88 <<
"Valid Function2 types are:" <<
nl
89 << dictionaryConstructorTablePtr_->sortedToc() <<
nl
static autoPtr< Function2< Type > > New(const word &name, const dictionary &dict)
Selector.
Templated function of two variables that returns a constant value.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void putBack(const token &)
Put back token.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A token holds items read from Istream.
const word & wordToken() const
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word name(const complex &)
Return a string representation of a complex.