Functor< R(), A1, A2 > Class Template Reference

Template specialization of generators (functions with no arguments) More...

#include <Functor.h>

Public Types

typedef R result_type
 

Public Member Functions

 Functor ()
 Default constructor.
 
operator() () const
 Generator function call.
 
template<class C , typename M >
 Functor (C *instance, M method)
 Construct from a class instance and generator method.
 
template<class C , typename M >
 Functor (const C &instance, M method)
 Construct from a class instance and generator method.
 
template<typename F >
 Functor (F function)
 Construct from a generator function.
 
template<class C , typename M >
void set (C *instance, M method)
 Set equal to a class instance and generator method.
 
template<typename F >
void set (F function)
 Set equal to a generator function.
 
bool operator! () const
 Return true if functor is not defined.
 
 operator bool () const
 Return true if functor is defined.
 
const FunctorBaseget_functor () const
 Get the pointer to the functor implementation.
 

Protected Attributes

Reference::To< Base > functor
 The implementation.
 

Detailed Description

template<typename R, typename A1, typename A2>
class Functor< R(), A1, A2 >

Template specialization of generators (functions with no arguments)

This class satisfies the STL definition of an Adaptable Generator


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

Generated using doxygen 1.8.17