Collage  1.6.0
High-performance C++ library for developing object-oriented distributed applications.
co::CommandFunc< T > Class Template Reference

A wrapper to register a function callback on an object instance. More...

#include <commandFunc.h>

+ Collaboration diagram for co::CommandFunc< T >:

Public Member Functions

 CommandFunc (T *object, bool(T::*func)(ICommand &))
 Create a new callback to the method on the given object. More...
 
template<typename O >
 CommandFunc (const CommandFunc< O > &from)
 Create a copy of a callback to a different base class. More...
 
bool operator() (ICommand &command)
 
T * _object
 
bool(T::* _func )(ICommand &)
 
void clear ()
 
bool isValid () const
 

Detailed Description

template<typename T>
class co::CommandFunc< T >

A wrapper to register a function callback on an object instance.

This wrapper is used by the Dispatcher to register and save callback methods of derived classes.

Definition at line 38 of file commandFunc.h.

Constructor & Destructor Documentation

template<typename T>
co::CommandFunc< T >::CommandFunc ( T *  object,
bool(T::*)(ICommand &)  func 
)
inline

Create a new callback to the method on the given object.

Version
1.0

Definition at line 45 of file commandFunc.h.

template<typename T>
template<typename O >
co::CommandFunc< T >::CommandFunc ( const CommandFunc< O > &  from)
inline

Create a copy of a callback to a different base class.

Version
1.0

Definition at line 52 of file commandFunc.h.


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