Go to the documentation of this file.
121 const
word& redirectType =
word::null
146 virtual Type
value(const scalar
x) const;
152 virtual Type
integrate(const scalar x1, const scalar x2) const;
180 template<class Function1Type>
188 typedef typename Function1Type::returnType
Type;
208 using Function1Type::value;
209 using Function1Type::integrate;
229 #define makeFunction1(Type) \
231 defineNamedTemplateTypeNameAndDebug(Function1<Type>, 0); \
233 defineTemplateRunTimeSelectionTable \
240 #define makeFunction1Type(SS, Type) \
242 defineNamedTemplateTypeNameAndDebug(Function1Types::SS<Type>, 0); \
244 Function1<Type>::adddictionaryConstructorToTable \
245 <FieldFunction1<Function1Types::SS<Type>>> \
246 add##SS##Type##ConstructorToTable_;
249 #define makeScalarFunction1(SS) \
251 defineTypeNameAndDebug(SS, 0); \
253 Function1<scalar>::adddictionaryConstructorToTable<FieldFunction1<SS>> \
254 add##SS##ConstructorToTable_;
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
Reference counter for various OpenFOAM components.
friend Ostream & operator(Ostream &os, const Function1< Type > &func)
Ostream Operator.
const word const dictionary & dict
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
Generic templated field type.
TypeName("Function1") declareRunTimeSelectionTable(autoPtr
Runtime type information.
const word & name() const
Return the name of the entry.
virtual void writeData(Ostream &os) const
Write in dictionary format.
void func(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual Type value(const scalar x) const
Return value as a function of (scalar) independent variable.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word name_
Name of entry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define declareRunTimeSelectionTable(autoPtr, baseType, argNames, argList, parList)
Declare a run-time selection.
Function1Type::returnType Type
virtual void convertTimeBase(const Time &t)
Convert time.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
static autoPtr< Function1< Type > > New(const word &entryName, const dictionary &dict, const word &redirectType=word::null)
Selector.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual tmp< Function1< Type > > clone() const =0
Construct and return a clone.
Ostream & operator<<(Ostream &, const boundaryPatch &)