|
IFEM 90A354
|
A real-valued integer function. More...
#include <Functions.h>


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. | |
A real-valued integer function.
|
inlineoverrideprotectedvirtual |