54 template<
class Type>
Ostream& operator<<(Ostream&, const Function2<Type>&);
122 const
word& name() const;
125 virtual Type
value(const scalar
x, const scalar
y) const = 0;
141 void operator=(const Function2<Type>&);
150 const Function2<Type>&
func 163 template<class Type, class Function2Type>
166 public Function2<Type>
187 virtual Type
value(
const scalar x,
const scalar
y)
const = 0;
204 #define makeFunction2(Type) \ 206 defineNamedTemplateTypeNameAndDebug(Function2<Type>, 0); \ 208 defineTemplateRunTimeSelectionTable(Function2<Type>, dictionary); 211 #define makeFunction2Type(SS, Type) \ 213 defineNamedTemplateTypeNameAndDebug(Function2s::SS<Type>, 0); \ 215 Function2<Type>::adddictionaryConstructorToTable<Function2s::SS<Type>> \ 216 addFunction2##SS##Type##ConstructorToTable_; 219 #define makeScalarFunction2(SS) \ 221 defineTypeNameAndDebug(SS, 0); \ 223 Function2<scalar>::adddictionaryConstructorToTable<SS> \ 224 addFunction2##SS##ConstructorToTable_;
virtual void write(Ostream &os) const =0
Write in dictionary format.
friend Ostream & operator(Ostream &os, const Function2< Type > &func)
Ostream Operator.
Reference counter for various OpenFOAM components.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static autoPtr< Function2< Type > > New(const word &name, const dictionary &dict)
Selector.
const word const dictionary & dict
const word & name() const
Return the name of the entry.
TypeName("Function2") declareRunTimeSelectionTable(autoPtr
Runtime type information.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
void func(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const word name_
Name of entry.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
#define declareRunTimeSelectionTable(autoPtr, baseType, argNames, argList, parList)
Declare a run-time selection.
Run-time selectable function of two variables.
virtual Type value(const scalar x, const scalar y) const =0
Return value as a function of two scalars.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual tmp< Function2< Type > > clone() const =0
Construct and return a clone.
A class for managing temporary objects.