54 template<
class Type>
Ostream& operator<<(Ostream&, const Function1<Type>&);
110 const
word& entryName,
130 virtual Type
value(const scalar
x) const = 0;
136 virtual Type
integrate(const scalar x1, const scalar x2) const = 0;
152 const Function1<Type>&
func 162 void operator=(const Function1<Type>&) = delete;
174 template<class Type, class Function1Type>
177 public Function1<Type>
203 virtual Type
value(
const scalar
x)
const = 0;
209 virtual Type
integrate(
const scalar x1,
const scalar x2)
const = 0;
226 #define makeFunction1(Type) \ 228 defineNamedTemplateTypeNameAndDebug(Function1<Type>, 0); \ 230 defineTemplateRunTimeSelectionTable(Function1<Type>, dictionary); 233 #define makeFunction1Type(SS, Type) \ 235 defineNamedTemplateTypeNameAndDebug(Function1s::SS<Type>, 0); \ 237 Function1<Type>::adddictionaryConstructorToTable<Function1s::SS<Type>> \ 238 add##SS##Type##ConstructorToTable_; 241 #define makeScalarFunction1(SS) \ 243 defineTypeNameAndDebug(SS, 0); \ 245 Function1<scalar>::adddictionaryConstructorToTable<SS> \ 246 add##SS##ConstructorToTable_; Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const word const dictionary & dict
Reference counter for various OpenFOAM components.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const word & name() const
Return the name of the entry.
TypeName("Function1") declareRunTimeSelectionTable(autoPtr
Runtime type information.
virtual void writeData(Ostream &os) const
Write in dictionary format.
friend Ostream & operator(Ostream &os, const Function1< Type > &func)
Ostream Operator.
virtual Type value(const scalar x) const =0
Return value as a function of (scalar) independent variable.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
const word name_
Name of entry.
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...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual tmp< Function1< Type > > clone() const =0
Construct and return a clone.
#define declareRunTimeSelectionTable(autoPtr, baseType, argNames, argList, parList)
Declare a run-time selection.
virtual Type integrate(const scalar x1, const scalar x2) const =0
Integrate between two (scalar) values.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
static autoPtr< Function1< Type > > New(const word &entryName, const dictionary &dict)
Selector.