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


Public Member Functions | |
| ConstantFunc (Real v) | |
| Constructor initializing the function value. | |
| bool | isZero () const override |
| Returns whether the function is identically zero or not. | |
Public Member Functions inherited from ScalarFunc | |
| Real | eval (Real x) const |
| Returns the function value for the argument x. | |
| virtual Real | deriv (Real) const |
| Returns the first-derivative of the function. | |
Public Member Functions inherited from utl::Function< Real, Real > | |
| virtual | ~Function () |
| Empty destructor. | |
| virtual bool | isConstant () const |
| Returns whether the function is time-independent or not. | |
| Real | operator() (const Real &x) const |
| Operator returning the function value for the given argument. | |
Protected Member Functions | |
| Real | evaluate (const Real &) const override |
| Evaluates the constant function. | |
Protected Member Functions inherited from ScalarFunc | |
| ScalarFunc () | |
| The constructor is protected to allow sub-class instances only. | |
Protected Member Functions inherited from utl::Function< Real, Real > | |
| Function () | |
| The constructor is protected to allow sub-class instances only. | |
Private Attributes | |
| Real | fval |
| The function value. | |
Additional Inherited Members | |
Public Types inherited from utl::Function< Real, Real > | |
| typedef Real | Input |
| Input type. | |
| typedef Real | Output |
| Output type. | |
A scalar-valued constant function.