latest version v1.9 - last update 10 Apr 2010 |
Base class for all scalar functors. More...
#include <ltiScalarFunctor.h>
Classes | |
class | parameters |
scalar value parameter needed in scalar functors More... | |
Public Member Functions | |
scalarFunctor (const T &val=T()) | |
scalarFunctor (const parameters &p) | |
const parameters & | getParameters () const |
Base class for all scalar functors.
\ These functors have similar functionality as unaryFunctors, but instead giving the functor object to the 'apply'-Method of the mathObject (e.g. matrix or vector), it receives the mathObject as argument in its 'apply'-method. Scalar functors are usually faster than unaryFunctors, because for the last ones a call to a virtual function is done for each element in the mathObject. This function call is in the scalar functors not requiered.
lti::scalarFunctor< T >::scalarFunctor | ( | const T & | val = T() |
) |
default constructor
lti::scalarFunctor< T >::scalarFunctor | ( | const parameters & | p | ) |
constructor to set the parameters
const parameters& lti::scalarFunctor< T >::getParameters | ( | ) | const |
return the casted parametes of this functor
Reimplemented from lti::functor.