golib  0.5
goFunction0< Tret > Class Template Reference

Function representation (not member function) for functions with 0 arguments. More...

#include <gofunctor2.h>

Public Types

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

Public Member Functions

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

Detailed Description

template<class Tret>
class goFunction0< Tret >

Function representation (not member function) for functions with 0 arguments.

The first template argument is the return type, the others are argument types.

Member Function Documentation

◆ operator()() [1/2]

template<class Tret>
virtual Tret goFunction0< Tret >::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>
virtual Tret goFunction0< Tret >::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: