55 template<
class Type>
Ostream& operator<<(Ostream&, const Function1<Type>&);
111 const
word& entryName,
137 virtual Type
value(const scalar
x) const;
143 virtual Type
integrate(const scalar x1, const scalar x2) const;
159 const Function1<Type>&
func 169 void operator=(const Function1<Type>&) = delete;
181 template<class Function1Type>
189 typedef typename Function1Type::returnType
Type;
210 using Function1Type::value;
211 using Function1Type::integrate;
231 #define makeFunction1(Type) \ 233 defineNamedTemplateTypeNameAndDebug(Function1<Type>, 0); \ 235 defineTemplateRunTimeSelectionTable \ 242 #define makeFunction1Type(SS, Type) \ 244 defineNamedTemplateTypeNameAndDebug(Function1Types::SS<Type>, 0); \ 246 Function1<Type>::adddictionaryConstructorToTable \ 247 <FieldFunction1<Function1Types::SS<Type>>> \ 248 add##SS##Type##ConstructorToTable_; 251 #define makeScalarFunction1(SS) \ 253 defineTypeNameAndDebug(SS, 0); \ 255 Function1<scalar>::adddictionaryConstructorToTable<FieldFunction1<SS>> \ 256 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.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual Type value(const scalar x) const
Return value as a function of (scalar) independent variable.
friend Ostream & operator(Ostream &os, const Function1< Type > &func)
Ostream Operator.
Function1Type::returnType Type
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...
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void convertTimeBase(const Time &t)
Convert time.
virtual tmp< Function1< Type > > clone() const =0
Construct and return a clone.
#define declareRunTimeSelectionTable(autoPtr, baseType, argNames, argList, parList)
Declare a run-time selection.
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.