|
IFEM
90A354
|
Base class for unary spatial functions of arbitrary result type. More...
#include <Function.h>

Public Member Functions | |
| virtual | ~FunctionBase () |
| Empty destructor. | |
| virtual unsigned char | getType () const =0 |
| Returns the function type flag. | |
| virtual std::vector< Real > | getValue (const Vec3 &) const =0 |
| Returns the function value as an array. | |
| virtual Real | getScalarValue (const Vec3 &) const =0 |
| Returns a representative scalar equivalent of the function value. | |
| size_t | dim () const |
| Returns the number of components of the return value. | |
| virtual bool | initPatch (size_t) |
| Sets the active patch. | |
| virtual bool | inDomain (const Vec3 &) const |
| Checks if a specified point is within the function domain. | |
| virtual void | setParam (const std::string &, Real) |
| Sets an additional parameter in the function. | |
| void | setParam (const std::string &name, const Vec3 &value) |
| Sets additional parameter values in the function. | |
Protected Member Functions | |
| FunctionBase () | |
| The constructor is protected to allow sub-class instances only. | |
Protected Attributes | |
| size_t | ncmp |
| Number of components in the return value. | |
Base class for unary spatial functions of arbitrary result type.
Includes an interface for returning the function value as an array, and for assigning additional state-dependent parameter values.