126 virtual Type
value(
const scalar
x,
const scalar
y)
const = 0;
148 friend Ostream& operator<< <Type>
164 template<
class Type,
class Function2Type>
188 virtual Type
value(
const scalar
x,
const scalar
y)
const = 0;
205 #define makeFunction2(Type) \
207 defineNamedTemplateTypeNameAndDebug(Function2<Type>, 0); \
208 defineTemplateRunTimeSelectionTable(Function2<Type>, dictionary);
211 #define makeFunction2Type(SS, Type) \
213 defineNamedTemplateTypeNameAndDebug(SS<Type>, 0); \
214 typedef Function2<Type> Type##Function2; \
215 typedef SS<Type> Type##SS##Function2; \
216 addToRunTimeSelectionTable \
219 Type##SS##Function2, \
224 #define makeScalarFunction2(SS) \
226 defineTypeNameAndDebug(SS, 0); \
227 typedef Function2<scalar> scalarFunction2; \
228 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.
static autoPtr< Function2< Type > > New(const word &name, const dictionary &dict)
Selector.
declareRunTimeSelectionTable(autoPtr, Function2, dictionary,(const word &name, const dictionary &dict),(name, dict))
Declare runtime constructor selection table.
virtual tmp< Function2< Type > > clone() const =0
Construct and return a clone.
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.
virtual void write(Ostream &os) const =0
Write in dictionary format.
const word name_
Name of entry.
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.
A class for handling words, derived from string.
void func(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Ostream & operator<<(Ostream &, const ensightPart &)