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

Template specialization of unary functions. More...

#include <Functor.h>

Classes

class  Base
 Pure virtual base class of unary functor implementations. More...
class  Function
 Implementation calls unary function F. More...
class  Method
 Implementation calls unary method M of class C. More...

Public Types

typedef A1 argument_type
typedef R result_type

Public Member Functions

 Functor ()
 Default constructor.
operator() (const A1 &p1) const
 Unary function call.
template<class C, typename M>
 Functor (C *instance, M method)
 Construct from a class instance and unary method.
template<class C, typename M>
 Functor (const C &instance, M method)
 Construct from a class instance and unary method.
template<typename F>
 Functor (F function)
 Construct from a unary function.
template<class C, typename M>
void set (C *instance, M method)
 Set equal to a class instance and unary method.
template<typename F>
void set (F function)
 Set equal to a unary 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< Basefunctor
 The implementation.

Detailed Description

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

Template specialization of unary functions.

This class satisfies the STL definition of an Adaptable Unary Function


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

Generated using doxygen 1.14.0