148 const word& Function2Type,
159 const word& Function2Type,
174 virtual Type
value(
const scalar
x,
const scalar
y)
const = 0;
200 friend Ostream& operator<< <Type>
234 template<
class Type,
class Function2Type>
258 virtual Type
value(
const scalar
x,
const scalar
y)
const = 0;
275 #define defineFunction2(Type) \
277 defineNamedTemplateTypeNameAndDebug(Function2<Type>, 0); \
278 defineTemplateRunTimeSelectionTable(Function2<Type>, dictionary); \
279 defineTemplateRunTimeSelectionTable(Function2<Type>, Istream);
282 #define addFunction2(SS, Type) \
284 defineNamedTemplateTypeNameAndDebug(SS<Type>, 0); \
285 typedef Function2<Type> Type##Function2; \
286 typedef SS<Type> Type##SS##Function2; \
287 addToRunTimeSelectionTable \
290 Type##SS##Function2, \
295 #define addStreamConstructableFunction2(SS, Type) \
297 addFunction2(SS, Type); \
298 addToRunTimeSelectionTable \
301 Type##SS##Function2, \
306 #define addScalarFunction2(SS) \
308 defineTypeNameAndDebug(SS, 0); \
309 typedef Function2<scalar> scalarFunction2; \
310 addToRunTimeSelectionTable(scalarFunction2, SS, dictionary)
virtual tmp< Function2< Type > > clone() const
Construct and return a clone.
FieldFunction2(const word &name)
Construct from name.
virtual ~FieldFunction2()
Destructor.
virtual Type value(const scalar x, const scalar y) const =0
Return value as a function of two scalars.
Run-time selectable function of two variables.
virtual void write(Ostream &os, const Function2s::unitSets &) const =0
Write in dictionary format.
virtual tmp< Function2< Type > > clone() const =0
Construct and return a clone.
virtual ~Function2()
Destructor.
static autoPtr< Function2< Type > > New(const word &name, const Function2s::unitSets &units, const dictionary &dict)
Select from dictionary.
Function2(const word &name)
Construct from name.
void operator=(const Function2< Type > &)
Assignment.
declareRunTimeSelectionTable(autoPtr, Function2, dictionary,(const word &name, const Function2s::unitSets &units, const dictionary &dict),(name, units, dict))
const word & name() const
Return the name of the entry.
TypeName("Function2")
Runtime type information.
virtual Type value(const scalar x, const scalar y) const =0
Return value as a function of two scalars.
const word name_
Name of entry.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Reference counter for various OpenFOAM components.
A class for managing temporary objects.
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
A class for handling words, derived from string.
void func(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
Macros to ease declaration of run-time selection tables.