LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::square< T > Class Template Reference

square functor class. More...

#include <ltiSquare.h>

Inheritance diagram for lti::square< T >:
Inheritance graph
[legend]
Collaboration diagram for lti::square< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 square ()
virtual ~square ()
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 functorclone () const
virtual const char * getTypeName () const

Detailed Description

template<class T>
class lti::square< T >

square functor class.

apply sets each element of the T-object to it's square value.


Constructor & Destructor Documentation

template<class T >
lti::square< T >::square (  )  [inline]

default constructor

Referenced by lti::square< T >::clone().

template<class T >
virtual lti::square< T >::~square (  )  [inline, virtual]

destructor


Member Function Documentation

template<class T >
virtual matrix<T>& lti::square< 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 >.

template<class T >
virtual matrix<T>& lti::square< T >::apply ( matrix< T > &  theObject  )  const [virtual]

onPlace version of apply.

applies the functor's function to theObject.

Implements lti::iteratingFunctor< T >.

template<class T >
virtual vector<T>& lti::square< 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 >.

template<class T >
virtual vector<T>& lti::square< T >::apply ( vector< T > &  theObject  )  const [virtual]

onPlace version of apply.

applies the functor's function to theObject.

Implements lti::iteratingFunctor< T >.

template<class T >
virtual functor* lti::square< T >::clone (  )  const [inline, virtual]

returns a pointer to a clone of the functor.

Implements lti::functor.

References lti::square< T >::square().

template<class T >
virtual const char* lti::square< T >::getTypeName ( void   )  const [inline, virtual]

returns the name of this type

Reimplemented from lti::iteratingFunctor< T >.


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:28:45 2010 for LTI-Lib by Doxygen 1.6.1