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

lti::scalarFunctor< T > Class Template Reference

Base class for all scalar functors. More...

#include <ltiScalarFunctor.h>

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

List of all members.

Classes

class  parameters
 scalar value parameter needed in scalar functors More...

Public Member Functions

 scalarFunctor (const T &val=T())
 scalarFunctor (const parameters &p)
const parametersgetParameters () const

Detailed Description

template<class T>
class lti::scalarFunctor< T >

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.


Constructor & Destructor Documentation

template<class T >
lti::scalarFunctor< T >::scalarFunctor ( const T &  val = T()  ) 

default constructor

template<class T >
lti::scalarFunctor< T >::scalarFunctor ( const parameters p  ) 

constructor to set the parameters


Member Function Documentation

template<class T >
const parameters& lti::scalarFunctor< T >::getParameters (  )  const

return the casted parametes of this functor

Reimplemented from lti::functor.


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

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