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

Monitor::Utility::FuncCallback Class Reference

Callback specialised to a non mmeber function. More...

#include <callback.h>

Inheritance diagram for Monitor::Utility::FuncCallback:

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

Public Types

typedef void(* CallbackType )()
 Type of function to be invoked by callback. More...


Public Methods

 FuncCallback (CallbackType newTargetFunction)
 Constructor. More...

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

virtual ~FuncCallback ()
 Destructor. More...

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

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

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

virtual int isTarget (const void *) const
 Test if object is the target for this callback. More...

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

virtual int set () const
 Test if callback is set, that is can it be invoked. More...


Protected Attributes

CallbackType targetFunction

Detailed Description

Callback specialised to a non mmeber function.

Definition at line 117 of file callback.h.


Member Typedef Documentation

typedef void(* Monitor::Utility::FuncCallback::CallbackType)()
 

Type of function to be invoked by callback.

Definition at line 123 of file callback.h.

Referenced by FuncCallback.


Constructor & Destructor Documentation

Monitor::Utility::FuncCallback::FuncCallback CallbackType    newTargetFunction [inline]
 

Constructor.

Definition at line 129 of file callback.h.

References Monitor::Utility::CallbackBase::CallbackBase, CallbackType, and targetFunction.

Referenced by clone, FuncCallback, and operator==.

Monitor::Utility::FuncCallback::FuncCallback const FuncCallback &    other [inline]
 

Copy Constructor.

Definition at line 138 of file callback.h.

References Monitor::Utility::CallbackBase::CallbackBase, FuncCallback, and targetFunction.

virtual Monitor::Utility::FuncCallback::~FuncCallback   [inline, virtual]
 

Destructor.

Definition at line 147 of file callback.h.


Member Function Documentation

virtual CallbackBase* Monitor::Utility::FuncCallback::clone   const [inline, virtual]
 

Produce a copy of callback.

Returns:
Pointer to new instance.

Implements Monitor::Utility::CallbackBase.

Definition at line 155 of file callback.h.

References FuncCallback.

virtual void Monitor::Utility::FuncCallback::invoke const void *    const [inline, virtual]
 

Invoke callback.

Implements Monitor::Utility::CallbackBase.

Definition at line 195 of file callback.h.

virtual int Monitor::Utility::FuncCallback::isEqual const CallbackBase   other const [inline, virtual]
 

Override of generic equivalence test.

Parameters:
other  Instance to test for equivalence with.

Reimplemented from Monitor::Utility::CallbackBase.

Definition at line 174 of file callback.h.

References Monitor::Utility::CallbackBase::CallbackBase.

virtual int Monitor::Utility::FuncCallback::isTarget const void *    const [inline, virtual]
 

Test if object is the target for this callback.

Returns:
!0 if is target, otherwise 0.

Implements Monitor::Utility::CallbackBase.

Definition at line 185 of file callback.h.

int Monitor::Utility::FuncCallback::operator== const FuncCallback &    other const [inline]
 

Equivalence operator.

Parameters:
other  Instance to test for equivalence with.

Definition at line 163 of file callback.h.

References FuncCallback, and targetFunction.

virtual int Monitor::Utility::FuncCallback::set   const [inline, virtual]
 

Test if callback is set, that is can it be invoked.

Returns:
!0 if set and can be invoked, otherwise 0.

Implements Monitor::Utility::CallbackBase.

Definition at line 203 of file callback.h.

References targetFunction.


Member Data Documentation

CallbackType Monitor::Utility::FuncCallback::targetFunction [protected]
 

Definition at line 206 of file callback.h.

Referenced by FuncCallback, operator==, and set.


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