Go to the documentation of this file.
56 #ifndef Function1Types_Constant_H
57 #define Function1Types_Constant_H
65 namespace Function1Types
135 inline void reset(
const Type& val);
138 virtual inline bool constant()
const {
return true; }
141 virtual inline Type
value(
const scalar)
const;
144 virtual inline Type
integrate(
const scalar x1,
const scalar x2)
const;
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
const word const dictionary & dict
virtual void writeData(Ostream &os) const
Write as primitive (inline) format.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
Registry of regIOobjects.
virtual ~Constant()=default
Destructor.
void reset(const Type &val)
Change the constant value.
void operator=(const Constant< Type > &)=delete
No copy assignment.
const word const dictionary const objectRegistry * obrPtr
Templated function that returns a constant value.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two values.
virtual bool constant() const
Value is independent of x.
Constant(const word &entryName, const Type &value, const objectRegistry *obrPtr=nullptr)
Construct from components.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Type value(const scalar) const
Return constant value.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.