52 #ifndef Function1Types_ZeroConstant_H 53 #define Function1Types_ZeroConstant_H 61 namespace Function1Types
119 virtual inline bool constant()
const {
return true; }
122 virtual inline Type
value(
const scalar)
const 128 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...
const word const dictionary & dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual ~ZeroConstant()=default
Destructor.
TypeName("zero")
Runtime type information.
virtual bool constant() const
Value is independent of x.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
A traits class, which is primarily used for primitives.
A class for handling words, derived from Foam::string.
virtual Type value(const scalar) const
Return constant value.
ZeroConstant(const ZeroConstant< Type > &)=default
Default copy construct.
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
void operator=(const ZeroConstant< Type > &)=delete
No copy assignment.
virtual void writeData(Ostream &os) const
Write as primitive (inline) format.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two values.
A class for managing temporary objects.
Registry of regIOobjects.
Templated function that returns the corresponding 0 (zero).