43#ifndef Function1Types_OneConstant_H
44#define Function1Types_OneConstant_H
52namespace 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
Templated function that returns the corresponding 1 (one).
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
virtual void writeData(Ostream &os) const
Write as primitive (inline) format.
virtual bool constant() const
Value is independent of x.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two values.
void operator=(const OneConstant< Type > &)=delete
No copy assignment.
OneConstant(const OneConstant< Type > &)=default
Default copy construct.
virtual ~OneConstant()=default
Destructor.
virtual Type value(const scalar) const
Return constant value.
TypeName("one")
Runtime type information.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const word const dictionary & dict
const word const dictionary const objectRegistry * obrPtr
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Registry of regIOobjects.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.