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

Monitor::Utility::ConstCallback Class Template Reference

Callback specialised to a const function of an instance of target class. More...

#include <callback.h>

Inheritance diagram for Monitor::Utility::ConstCallback:

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

Public Types

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


Public Methods

 ConstCallback (const TargetClass &newTargetObject, CallbackType newTargetFunction)
 Constructor. More...

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

virtual ~ConstCallback ()
 Destructor. More...

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

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

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


Detailed Description

template<class TargetClass>
class Monitor::Utility::ConstCallback< TargetClass >

Callback specialised to a const function of an instance of target class.

Definition at line 366 of file callback.h.


Member Typedef Documentation

template<class TargetClass>
typedef void(TargetClass::* Monitor::Utility::ConstCallback::CallbackType)() const
 

Type of target class method to be invoked by callback.

Reimplemented from Monitor::Utility::Callback.

Definition at line 372 of file callback.h.

Referenced by ConstCallback.


Constructor & Destructor Documentation

template<class TargetClass>
Monitor::Utility::ConstCallback< TargetClass >::ConstCallback const TargetClass &    newTargetObject,
CallbackType    newTargetFunction
[inline]
 

Constructor.

Definition at line 378 of file callback.h.

References Monitor::Utility::Callback::Callback, and CallbackType.

Referenced by clone, ConstCallback, and operator==.

template<class TargetClass>
Monitor::Utility::ConstCallback< TargetClass >::ConstCallback const ConstCallback< TargetClass > &    other [inline]
 

Copy Constructor.

Definition at line 391 of file callback.h.

References Monitor::Utility::Callback::Callback, and ConstCallback.

template<class TargetClass>
virtual Monitor::Utility::ConstCallback< TargetClass >::~ConstCallback   [inline, virtual]
 

Destructor.

Definition at line 399 of file callback.h.


Member Function Documentation

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

Produce a copy of callback.

Returns:
Pointer to new instance.

Reimplemented from Monitor::Utility::Callback.

Definition at line 407 of file callback.h.

References ConstCallback.

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

Invoke callback.

Reimplemented from Monitor::Utility::Callback.

Definition at line 425 of file callback.h.

References Monitor::Utility::ClassCallback::targetObject.

template<class TargetClass>
int Monitor::Utility::ConstCallback< TargetClass >::operator== const ConstCallback< TargetClass > &    other const [inline]
 

Equivalence operator.

Parameters:
other  Instance to test for equivalence with.

Definition at line 415 of file callback.h.

References ConstCallback.


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