MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions
mds::base::CFunctor< R, P1, P2, P3, P4 > Class Template Reference

Generalized functor implementation. More...

#include <mdsFunctor.h>

Inheritance diagram for mds::base::CFunctor< R, P1, P2, P3, P4 >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { NUM_OF_PARAMS = tBase::NUM_OF_PARAMS }
 Number of parameters. More...
typedef CFunctorBase< R, P1,
P2, P3, P4 > 
tBase
 Type definitions.
typedef tBase::tParam1 tParam1
typedef tBase::tParam2 tParam2
typedef tBase::tParam3 tParam3
typedef tBase::tParam4 tParam4
typedef tBase::tResult tResult

Public Member Functions

 CFunctor ()
 Default constructor.
 CFunctor (const CFunctor &Functor)
 Copy constructor.
template<typename F >
 CFunctor (F Func)
 Constructor creates functor encapsulating any function.
template<class O , typename F >
 CFunctor (const O &pObject, F pMemFunc)
 Constructor creates functor encapsulating pointer to member function.
tResult operator() ()
 Function operators.
tResult operator() (tParam1 p1)
tResult operator() (tParam1 p1, tParam2 p2)
tResult operator() (tParam1 p1, tParam2 p2, tParam3 p3)
tResult operator() (tParam1 p1, tParam2 p2, tParam3 p3, tParam4 p4)
CFunctoroperator= (const CFunctor &Functor)
 Assignment operator.

Detailed Description

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
class mds::base::CFunctor< R, P1, P2, P3, P4 >

Generalized functor implementation.


Member Typedef Documentation

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
typedef CFunctorBase<R, P1, P2, P3, P4> mds::base::CFunctor< R, P1, P2, P3, P4 >::tBase

Type definitions.

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
typedef tBase::tParam1 mds::base::CFunctor< R, P1, P2, P3, P4 >::tParam1
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
typedef tBase::tParam2 mds::base::CFunctor< R, P1, P2, P3, P4 >::tParam2
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
typedef tBase::tParam3 mds::base::CFunctor< R, P1, P2, P3, P4 >::tParam3
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
typedef tBase::tParam4 mds::base::CFunctor< R, P1, P2, P3, P4 >::tParam4
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
typedef tBase::tResult mds::base::CFunctor< R, P1, P2, P3, P4 >::tResult

Member Enumeration Documentation

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
anonymous enum

Number of parameters.

Enumerator:
NUM_OF_PARAMS 

Constructor & Destructor Documentation

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
mds::base::CFunctor< R, P1, P2, P3, P4 >::CFunctor ( )

Default constructor.

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
mds::base::CFunctor< R, P1, P2, P3, P4 >::CFunctor ( const CFunctor< R, P1, P2, P3, P4 > &  Functor)

Copy constructor.

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
template<typename F >
mds::base::CFunctor< R, P1, P2, P3, P4 >::CFunctor ( Func)

Constructor creates functor encapsulating any function.

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
template<class O , typename F >
mds::base::CFunctor< R, P1, P2, P3, P4 >::CFunctor ( const O &  pObject,
pMemFunc 
)

Constructor creates functor encapsulating pointer to member function.


Member Function Documentation

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
tResult mds::base::CFunctor< R, P1, P2, P3, P4 >::operator() ( )

Function operators.

template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
tResult mds::base::CFunctor< R, P1, P2, P3, P4 >::operator() ( tParam1  p1)
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
tResult mds::base::CFunctor< R, P1, P2, P3, P4 >::operator() ( tParam1  p1,
tParam2  p2 
)
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
tResult mds::base::CFunctor< R, P1, P2, P3, P4 >::operator() ( tParam1  p1,
tParam2  p2,
tParam3  p3 
)
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
tResult mds::base::CFunctor< R, P1, P2, P3, P4 >::operator() ( tParam1  p1,
tParam2  p2,
tParam3  p3,
tParam4  p4 
)
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
CFunctor& mds::base::CFunctor< R, P1, P2, P3, P4 >::operator= ( const CFunctor< R, P1, P2, P3, P4 > &  Functor)

Assignment operator.


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