37#ifndef Foam_Function1Types_None_H
38#define Foam_Function1Types_None_H
84 const word& entryName,
97 virtual ~None() =
default;
103 virtual inline bool constant()
const {
return true; }
106 virtual inline bool good()
const {
return false; }
109 virtual Type
value(
const scalar
x)
const;
112 virtual Type
integral(
const scalar x1,
const scalar x2)
const;
virtual tmp< Function1< Type > > clone() const
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 integral(const scalar x1, const scalar x2) const
Placeholder: generates an error if called.
TypeName("none")
Runtime type information.
virtual bool good() const
Function cannot be evaluated.
None(const None< Type > &)=default
Default copy construct.
virtual Type value(const scalar x) const
Placeholder: generates an error if called.
virtual ~None()=default
Destructor.
void operator=(const None< Type > &)=delete
No copy assignment.
Function1(const word &entryName, const objectRegistry *obrPtr=nullptr)
Construct from entry name.
static tmp< Function1< Type > > Clone(const Derived &fun)
Clone a Function1.
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 for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.