98 public FieldFunction1<Type, Square<Type>>
103 autoPtr<Function1<Type>> amplitude_;
112 autoPtr<Function1<Type>> level_;
155 virtual inline Type
value(
const scalar
x)
const;
158 virtual inline Type
integrate(
const scalar x1,
const scalar x2)
const;
virtual ~Square()
Destructor.
const word const dictionary & dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual Type value(const scalar x) const
Return value.
void operator=(const Square< Type > &)=delete
Disallow default bitwise assignment.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two values.
Templated square-wave function with support for an offset level.
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Square(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.