LTI-Lib latest version v1.9 - last update 24 Nov 2005
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

lti::addScalar< T > Class Template Reference

addScalar functor class. More...

#include <ltiAddScalar.h>

Inheritance diagram for lti::addScalar< T >:

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

Collaboration graph
[legend]
List of all members.

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

Detailed Description

template<class T>
class lti::addScalar< T >

addScalar functor class.

Apply adds the given scalar value to each element of the MathObj.


Constructor & Destructor Documentation

template<class T>
lti::addScalar< T >::addScalar  )  [inline]
 

default constructor

template<class T>
lti::addScalar< T >::addScalar const T &  theValue  )  [inline]
 

constructor, sets the scalar value.

template<class T>
lti::addScalar< T >::addScalar const parameters theParams  )  [inline]
 

constructor, sets the parameters, i.e. the scalar value.

template<class T>
virtual lti::addScalar< T >::~addScalar  )  [virtual]
 

destructor


Member Function Documentation

template<class T>
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 >.

template<class 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 >.

template<class 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 >.

template<class 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 >.

template<class T>
virtual functor* lti::addScalar< T >::clone  )  const [virtual]
 

returns a pointer to a clone of the functor.

Implements lti::functor.

template<class T>
virtual const char* lti::addScalar< T >::getTypeName  )  const [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 Thu Nov 24 16:54:34 2005 for LTI-Lib by Doxygen 1.4.4