184 const word& Function2Type,
195 const word& Function2Type,
210 virtual Type
value(
const scalar
x,
const scalar
y)
const = 0;
236 friend Ostream& operator<< <Type>
270 template<
class Type,
class Function2Type>
294 virtual Type
value(
const scalar
x,
const scalar
y)
const = 0;
311 #define defineFunction2(Type) \
313 defineNamedTemplateTypeNameAndDebug(Function2<Type>, 0); \
314 defineTemplateRunTimeSelectionTable(Function2<Type>, dictionary); \
315 defineTemplateRunTimeSelectionTable(Function2<Type>, Istream);
318 #define addFunction2(SS, Type) \
320 defineNamedTemplateTypeNameAndDebug(SS<Type>, 0); \
321 typedef Function2<Type> Type##Function2; \
322 typedef SS<Type> Type##SS##Function2; \
323 addToRunTimeSelectionTable \
326 Type##SS##Function2, \
331 #define addStreamConstructableFunction2(SS, Type) \
333 addFunction2(SS, Type); \
334 addToRunTimeSelectionTable \
337 Type##SS##Function2, \
342 #define addScalarFunction2(SS) \
344 defineTypeNameAndDebug(SS, 0); \
345 typedef Function2<scalar> scalarFunction2; \
346 addToRunTimeSelectionTable(scalarFunction2, SS, dictionary)
Macros for easy insertion into run-time selection tables.
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::unitConversions &) const =0
Write in dictionary format.
declareRunTimeSelectionTable(autoPtr, Function2, dictionary,(const word &name, const Function2s::unitConversions &units, const dictionary &dict),(name, units, dict))
virtual tmp< Function2< Type > > clone() const =0
Construct and return a clone.
static autoPtr< Function2< Type > > New(const word &name, const Function2s::unitConversions &units, const dictionary &dict)
Select from dictionary.
virtual ~Function2()
Destructor.
Function2(const word &name)
Construct from name.
void operator=(const Function2< Type > &)
Assignment.
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 keyword definitions, which are a keyword followed by any number of values (e....
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)
const HashTable< unitConversion > & units()
Get the table of unit conversions.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void assertNoConvertUnits(const word &typeName, const Function1s::unitConversions &units, const dictionary &dict)
Generate an error in an context where unit conversions are not supported.
unitConversion y
Unit conversion for y-axis values.
unitConversion value
Unit conversion for result values.
unitConversion x
Unit conversion for x-axis values.
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...