IFEM 90A354
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IntFunc Class Reference

A real-valued integer function. More...

#include <Functions.h>

Inheritance diagram for IntFunc:
Inheritance graph
[legend]
Collaboration diagram for IntFunc:
Collaboration graph
[legend]

Public Member Functions

 IntFunc (Real s=Real(1), Real ofs=Real(0))
 Constructor initializing the function parameters.
 
- Public Member Functions inherited from utl::Function< int, Real >
virtual ~Function ()
 Empty destructor.
 
virtual bool isZero () const
 Returns whether the function is identically zero or not.
 
virtual bool isConstant () const
 Returns whether the function is time-independent or not.
 
Real operator() (const int &x) const
 Operator returning the function value for the given argument.
 

Protected Member Functions

Real evaluate (const int &x) const override
 Evaluates the linear function.
 
- Protected Member Functions inherited from utl::Function< int, Real >
 Function ()
 The constructor is protected to allow sub-class instances only.
 

Protected Attributes

Real sf
 Scaling factor.
 
Real f0
 Function value offset.
 

Additional Inherited Members

- Public Types inherited from utl::Function< int, Real >
typedef int Input
 Input type.
 
typedef Real Output
 Output type.
 

Detailed Description

A real-valued integer function.

Member Function Documentation

◆ evaluate()

Real IntFunc::evaluate ( const int &  x) const
inlineoverrideprotectedvirtual

Evaluates the linear function.

Implements utl::Function< int, Real >.

References f0, Real, and sf.


The documentation for this class was generated from the following file: