Go to the documentation of this file.
150 const
word& redirectType =
word::null
175 virtual Type
value(const scalar
x) const;
181 virtual Type
integrate(const scalar x1, const scalar x2) const;
209 template<class Function1Type>
217 typedef typename Function1Type::returnType
Type;
237 using Function1Type::value;
238 using Function1Type::integrate;
258 #define makeFunction1(Type) \
260 defineNamedTemplateTypeNameAndDebug(Function1<Type>, 0); \
262 defineTemplateRunTimeSelectionTable \
269 #define makeFunction1Type(SS, Type) \
271 defineNamedTemplateTypeNameAndDebug(Function1Types::SS<Type>, 0); \
273 Function1<Type>::adddictionaryConstructorToTable \
274 <FieldFunction1<Function1Types::SS<Type>>> \
275 add##SS##Type##ConstructorToTable_;
278 #define makeScalarFunction1(SS) \
280 defineTypeNameAndDebug(SS, 0); \
282 Function1<scalar>::adddictionaryConstructorToTable<FieldFunction1<SS>> \
283 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...
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
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 operator=(const Function1< Type > &)=delete
No copy assignment.
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.