latest version v1.9 - last update 10 Apr 2010 |
AbsoluteValue functor class. More...
#include <ltiAbsValue.h>
Public Member Functions | |
absoluteValue () | |
virtual | ~absoluteValue () |
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 |
AbsoluteValue functor class.
Apply sets each element of the T-object to it's absoulte value.
lti::absoluteValue< T >::absoluteValue | ( | ) | [inline] |
default constructor
virtual lti::absoluteValue< T >::~absoluteValue | ( | ) | [inline, virtual] |
destructor
virtual matrix<T>& lti::absoluteValue< 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::absoluteValue< 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::absoluteValue< 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::absoluteValue< 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::absoluteValue< T >::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the functor.
Implements lti::functor.
virtual const char* lti::absoluteValue< T >::getTypeName | ( | void | ) | const [inline, virtual] |
returns the name of this type.
Reimplemented from lti::iteratingFunctor< T >.