Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

Monitor::Utility::DataCallback Class Template Reference

Callback specialised to a non const function, taking data (held by callback), of an instance of target class. More...

#include <callback.h>

Inheritance diagram for Monitor::Utility::DataCallback:

Monitor::Utility::Callback Monitor::Utility::ClassCallback Monitor::Utility::CallbackBase List of all members.

Public Types

typedef void(TargetClass::* CallbackType )(TargetData)
 Type of target class method to be invoked by callback. More...


Public Methods

 DataCallback (TargetClass &newTargetObject, CallbackType newTargetFunction, const TargetData &newTargetData)
 Constructor. More...

 DataCallback (const DataCallback &other)
 Copy Constructor. More...

virtual ~DataCallback ()
 Destructor. More...

virtual CallbackBaseclone () const
 Produce a copy of callback. More...

int operator== (const DataCallback &other) const
 Equivalence operator. More...

virtual int isEqual (const CallbackBase &other) const
 Override of generic equivalence test. More...

virtual void invoke (const void *) const
 Invoke callback. More...


Protected Attributes

TargetData targetData

Detailed Description

template<class TargetClass, typename TargetData>
class Monitor::Utility::DataCallback< TargetClass, TargetData >

Callback specialised to a non const function, taking data (held by callback), of an instance of target class.

Definition at line 438 of file callback.h.


Member Typedef Documentation

template<class TargetClass, typename TargetData>
typedef void(TargetClass::* Monitor::Utility::DataCallback::CallbackType)(TargetData)
 

Type of target class method to be invoked by callback.

Reimplemented from Monitor::Utility::Callback.

Reimplemented in Monitor::Utility::DataConstCallback.

Definition at line 444 of file callback.h.

Referenced by Monitor::Utility::DataCallback< const TargetClass, TargetData >::DataCallback.


Constructor & Destructor Documentation

template<class TargetClass, typename TargetData>
Monitor::Utility::DataCallback< TargetClass, TargetData >::DataCallback TargetClass &    newTargetObject,
CallbackType    newTargetFunction,
const TargetData &    newTargetData
[inline]
 

Constructor.

Definition at line 450 of file callback.h.

Referenced by Monitor::Utility::DataCallback< const TargetClass, TargetData >::clone, Monitor::Utility::DataCallback< const TargetClass, TargetData >::DataCallback, and Monitor::Utility::DataCallback< const TargetClass, TargetData >::operator==.

template<class TargetClass, typename TargetData>
Monitor::Utility::DataCallback< TargetClass, TargetData >::DataCallback const DataCallback< TargetClass, TargetData > &    other [inline]
 

Copy Constructor.

Definition at line 465 of file callback.h.

template<class TargetClass, typename TargetData>
virtual Monitor::Utility::DataCallback< TargetClass, TargetData >::~DataCallback   [inline, virtual]
 

Destructor.

Definition at line 474 of file callback.h.


Member Function Documentation

template<class TargetClass, typename TargetData>
virtual CallbackBase* Monitor::Utility::DataCallback< TargetClass, TargetData >::clone   const [inline, virtual]
 

Produce a copy of callback.

Returns:
Pointer to new instance.

Reimplemented from Monitor::Utility::Callback.

Reimplemented in Monitor::Utility::DataConstCallback.

Definition at line 482 of file callback.h.

template<class TargetClass, typename TargetData>
virtual void Monitor::Utility::DataCallback< TargetClass, TargetData >::invoke const void *    const [inline, virtual]
 

Invoke callback.

Reimplemented from Monitor::Utility::Callback.

Definition at line 507 of file callback.h.

template<class TargetClass, typename TargetData>
virtual int Monitor::Utility::DataCallback< TargetClass, TargetData >::isEqual const CallbackBase   other const [inline, virtual]
 

Override of generic equivalence test.

Parameters:
other  Instance to test for equivalence with.

Reimplemented from Monitor::Utility::Callback.

Definition at line 497 of file callback.h.

template<class TargetClass, typename TargetData>
int Monitor::Utility::DataCallback< TargetClass, TargetData >::operator== const DataCallback< TargetClass, TargetData > &    other const [inline]
 

Equivalence operator.

Parameters:
other  Instance to test for equivalence with.

Definition at line 490 of file callback.h.


Member Data Documentation

template<class TargetClass, typename TargetData>
TargetData Monitor::Utility::DataCallback::targetData [protected]
 

Definition at line 514 of file callback.h.

Referenced by Monitor::Utility::DataCallback< const TargetClass, TargetData >::DataCallback, Monitor::Utility::DataCallback< const TargetClass, TargetData >::invoke, and Monitor::Utility::DataCallback< const TargetClass, TargetData >::operator==.


Generated on Wed Oct 29 21:30:12 2003 for Utility C++ by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002