golib  0.5
goFunctor1< Tret, Tclass, Targ0 > Class Template Reference

Member function representation for class members with 1 arguments. More...

#include <gofunctor2.h>

Public Types

typedef Tret(Tclass::* function_t) (Targ0 arg0)
 Function type represented by this class.
 
typedef Tret(Tclass::* function_t) (Targ0 arg0)
 Function type represented by this class.
 

Public Member Functions

 goFunctor1 (Tclass *object, function_t function)
 
virtual Tret operator() (Targ0 arg0)
 Calls the function set to this functor. More...
 
virtual Tret operator() (Targ0 arg0) const
 
virtual goFunctorBase1< Tret, Targ0 > * createCopy () const
 
 goFunctor1 (Tclass *object, function_t function)
 
virtual Tret operator() (Targ0 arg0)
 Calls the function set to this functor. More...
 
virtual Tret operator() (Targ0 arg0) const
 

Detailed Description

template<class Tret, class Tclass, class Targ0>
class goFunctor1< Tret, Tclass, Targ0 >

Member function representation for class members with 1 arguments.

The first template argument is the return type, the second is the class type, the others are member function argument types.

Examples
sumproduct/sp.cpp.

Member Function Documentation

◆ operator()() [1/2]

template<class Tret , class Tclass , class Targ0 >
virtual Tret goFunctor1< Tret, Tclass, Targ0 >::operator() ( Targ0  arg0)
inlinevirtual

Calls the function set to this functor.

Parameters
pWhatever parameter the represented function takes.
Returns
Whatever the set function returns.

Implements goFunctorBase1< Tret, Targ0 >.

◆ operator()() [2/2]

template<class Tret , class Tclass , class Targ0 >
virtual Tret goFunctor1< Tret, Tclass, Targ0 >::operator() ( Targ0  arg0)
inlinevirtual

Calls the function set to this functor.

Parameters
pWhatever parameter the represented function takes.
Returns
Whatever the set function returns.

Implements goFunctorBase1< Tret, Targ0 >.


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