54 template<
class Type>
class Function1;
55 template<
class Type> Ostream& operator<<(Ostream&, const Function1<Type>&);
64 public tmp<Function1<Type>>::refCount
69 void operator=(
const Function1<Type>&);
116 const
word& entryName,
142 virtual Type
value(const scalar
x) const;
148 virtual Type
integrate(const scalar x1, const scalar x2) const;
164 const Function1<Type>&
func 176 template<class Function1Type>
184 typedef typename Function1Type::returnType
Type;
205 using Function1Type::value;
206 using Function1Type::integrate;
226 #define makeFunction1(Type) \ 228 defineNamedTemplateTypeNameAndDebug(Function1<Type>, 0); \ 230 defineTemplateRunTimeSelectionTable \ 237 #define makeFunction1Type(SS, Type) \ 239 defineNamedTemplateTypeNameAndDebug(Function1Types::SS<Type>, 0); \ 241 Function1<Type>::adddictionaryConstructorToTable \ 242 <FieldFunction1<Function1Types::SS<Type>>> \ 243 add##SS##Type##ConstructorToTable_; 246 #define makeScalarFunction1(SS) \ 248 defineTypeNameAndDebug(SS, 0); \ 250 Function1<scalar>::adddictionaryConstructorToTable<FieldFunction1<SS>> \ 251 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
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.
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.