Go to the documentation of this file.
107 const word& redirectType,
163 const
word& redirectType,
164 const
bool mandatory = true
171 std::initializer_list<std::pair<const
char*,
int>> compat,
173 const
word& redirectType =
word::null,
174 const
bool mandatory = true
182 const
bool mandatory = true
190 const
word& redirectType =
word::null
203 virtual Type
value(const scalar
x) const;
209 virtual Type
integrate(const scalar x1, const scalar x2) const;
242 template<class Function1Type>
249 typedef typename Function1Type::returnType
Type;
269 using Function1Type::value;
270 using Function1Type::integrate;
291 #define makeFunction1(Type) \
293 defineNamedTemplateTypeNameAndDebug(Function1<Type>, 0); \
295 defineTemplateRunTimeSelectionTable \
303 #define makeFunction1Type(SS, Type) \
305 defineNamedTemplateTypeNameAndDebug(Function1Types::SS<Type>, 0); \
307 Function1<Type>::adddictionaryConstructorToTable \
308 <FieldFunction1<Function1Types::SS<Type>>> \
309 add##SS##Type##ConstructorToTable_;
313 #define makeConcreteFunction1(SS, Type) \
315 defineTypeNameAndDebug(SS, 0); \
317 Function1<Type>::adddictionaryConstructorToTable \
318 <FieldFunction1<SS>> \
319 add##SS##Type##ConstructorToTable_;
323 #define makeScalarFunction1(SS) \
325 makeConcreteFunction1(SS, scalar);
A keyword and a list of tokens is an 'entry'.
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.
void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
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.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
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,...
static autoPtr< Function1< Type > > NewIfPresent(const word &entryName, const dictionary &dict, const word &redirectType=word::null)
An optional selector.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static autoPtr< Function1< Type > > NewCompat(const word &entryName, std::initializer_list< std::pair< const char *, int >> compat, const dictionary &dict, const word &redirectType=word::null, const bool mandatory=true)
Compatibility selector, with fallback redirection.
#define declareRunTimeSelectionTable(autoPtr, baseType, argNames, argList, parList)
Declare a run-time selection.
Function1Type::returnType Type
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
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.