43 #ifndef Foam_Function1Types_OneConstant_H 44 #define Foam_Function1Types_OneConstant_H 52 namespace Function1Types
110 virtual inline bool constant()
const {
return true; }
113 virtual inline Type
value(
const scalar)
const 119 virtual inline Type
integrate(
const scalar x1,
const scalar x2)
const Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual tmp< Function1< Type > > clone() const
Return a clone.
const word const dictionary & dict
OneConstant(const OneConstant< Type > &)=default
Default copy construct.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void operator=(const OneConstant< Type > &)=delete
No copy assignment.
A traits class, which is primarily used for primitives and vector-space.
virtual ~OneConstant()=default
Destructor.
Templated function that returns the corresponding 1 (one).
static tmp< Function1< Type > > Clone(const Derived &fun)
Clone a Function1.
A class for handling words, derived from Foam::string.
TypeName("one")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const word const dictionary const objectRegistry * obrPtr
virtual Type value(const scalar) const
Return constant value.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two values.
A class for managing temporary objects.
Registry of regIOobjects.
virtual void writeData(Ostream &os) const
Write as primitive (inline) format.
virtual bool constant() const
Value is independent of x.