|
latest version v1.9 - last update 10 Apr 2010 |
|
addScalar functor class. More...
#include <ltiAddScalar.h>


Public Member Functions | |
| addScalar () | |
| addScalar (const T &theValue) | |
| addScalar (const parameters &theParams) | |
| virtual | ~addScalar () |
| virtual vector< T > & | apply (vector< T > &theObject) const |
| virtual vector< T > & | apply (const vector< T > &theObject, vector< T > &newObject) const |
| virtual matrix< T > & | apply (matrix< T > &theObject) const |
| virtual matrix< T > & | apply (const matrix< T > &theObject, matrix< T > &newObject) const |
| virtual functor * | clone () const |
| virtual const char * | getTypeName () const |
Apply adds the given scalar value to each element of the MathObj.
| lti::addScalar< T >::addScalar | ( | ) | [inline] |
default constructor
| lti::addScalar< T >::addScalar | ( | const T & | theValue | ) | [inline] |
constructor, sets the scalar value.
| lti::addScalar< T >::addScalar | ( | const parameters & | theParams | ) | [inline] |
constructor, sets the parameters, i.e. the scalar value.
| virtual lti::addScalar< T >::~addScalar | ( | ) | [virtual] |
destructor
| virtual matrix<T>& lti::addScalar< T >::apply | ( | const matrix< T > & | theObject, | |
| matrix< T > & | newObject | |||
| ) | const [virtual] |
onCopy version of apply.
applies the functor's function to the copy of theObject, newObject.
Implements lti::iteratingFunctor< T >.
| virtual matrix<T>& lti::addScalar< T >::apply | ( | matrix< T > & | theObject | ) | const [virtual] |
onPlace version of apply.
applies the functor's function to theObject.
Implements lti::iteratingFunctor< T >.
| virtual vector<T>& lti::addScalar< T >::apply | ( | const vector< T > & | theObject, | |
| vector< T > & | newObject | |||
| ) | const [virtual] |
onCopy version of apply.
applies the functor's function to the copy of theObject, newObject.
Implements lti::iteratingFunctor< T >.
| virtual vector<T>& lti::addScalar< T >::apply | ( | vector< T > & | theObject | ) | const [virtual] |
onPlace version of apply.
applies the functor's function to theObject.
Implements lti::iteratingFunctor< T >.
| virtual functor* lti::addScalar< T >::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the functor.
Implements lti::functor.
| virtual const char* lti::addScalar< T >::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::iteratingFunctor< T >.