104#ifndef Function1Types_Square_H
105#define Function1Types_Square_H
113namespace Function1Types
123 public Function1Types::Sine<Type>
142 void operator=(
const Square<Type>&) =
delete;
152 const objectRegistry*
obrPtr =
nullptr
156 explicit Square(
const Square<Type>& rhs);
159 virtual tmp<Function1<Type>>
clone()
const
161 return tmp<Function1<Type>>(
new Square<Type>(*
this));
172 virtual inline Type
value(
const scalar t)
const
A templated sine function, with support for offset etc.
Type squareValue(const scalar t, const scalar posFrac) const
Return value for time t, using square form.
A templated square-wave function with support for offset, etc.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
virtual ~Square()=default
Destructor.
virtual Type value(const scalar t) const
Return value for time t.
void operator=(const Square< Type > &)=delete
No copy assignment.
Square(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
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 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.