54 template<
class Type>
class Function1;
55 template<
class Type>
Ostream& operator<<(Ostream&, const Function1<Type>&);
92 const
word& entryName,
102 Function1(const
word& entryName);
105 Function1(const Function1<Type>& de);
108 virtual
tmp<Function1<Type>>
clone() const = 0;
112 static autoPtr<Function1<Type>>
New 114 const
word& entryName,
120 virtual ~Function1();
140 virtual Type
value(const scalar
x) const;
146 virtual Type
integrate(const scalar x1, const scalar x2) const;
162 const Function1<Type>& func
176 #define makeFunction1(Type) \ 178 defineNamedTemplateTypeNameAndDebug(Function1<Type>, 0); \ 180 defineTemplateRunTimeSelectionTable \ 187 #define makeFunction1Type(SS, Type) \ 189 defineNamedTemplateTypeNameAndDebug(Function1Types::SS<Type>, 0); \ 191 Function1<Type>::adddictionaryConstructorToTable<Function1Types::SS<Type>> \ 192 add##SS##Type##ConstructorToTable_; 195 #define makeScalarFunction1(SS) \ 197 defineTypeNameAndDebug(SS, 0); \ 199 Function1<scalar>::adddictionaryConstructorToTable<SS> \ 200 add##SS##ConstructorToTable_; Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
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.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
const word name_
Name of entry.
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.
A class for managing temporary objects.
static autoPtr< Function1< Type > > New(const word &entryName, const dictionary &dict)
Selector.