golib  0.5
goFunctor0< Tret, Tclass > Class Template Reference

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

#include <gofunctor2.h>

Public Types

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

Public Member Functions

 goFunctor0 (Tclass *object, function_t function)
 
virtual Tret operator() ()
 Calls the function set to this functor. More...
 
virtual Tret operator() () const
 
virtual goFunctorBase0< Tret > * createCopy () const
 
 goFunctor0 (Tclass *object, function_t function)
 
virtual Tret operator() ()
 Calls the function set to this functor. More...
 
virtual Tret operator() () const
 

Detailed Description

template<class Tret, class Tclass>
class goFunctor0< Tret, Tclass >

Member function representation for class members with 0 arguments.

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

Member Function Documentation

◆ operator()() [1/2]

template<class Tret , class Tclass >
virtual Tret goFunctor0< Tret, Tclass >::operator() ( )
inlinevirtual

Calls the function set to this functor.

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

Implements goFunctorBase0< Tret >.

◆ operator()() [2/2]

template<class Tret , class Tclass >
virtual Tret goFunctor0< Tret, Tclass >::operator() ( )
inlinevirtual

Calls the function set to this functor.

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

Implements goFunctorBase0< Tret >.


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