Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Dispatcher Struct Reference

List of all members.

Detailed Description

A set of delegates that are notified when a Control event is activated.


Public Types

typedef void(* Method )(Event event)
 The first-form method.

typedef void(* MethodB )()
 The second-form method.


Public Member Functions

void add (Method method)
 Add a method to the list.

void add (MethodB method)
 Add a no-argument-form method to the list.

void add (Dispatcher *dispatcher)
 Add a dispatcher pointer to the list.

void remove (Method m)
 Remove a method from the list.

void remove (MethodB m)
 Remove a method from the list.

void remove (Dispatcher *d)
 Remove a dispatcher from the list.

void notify (Event e)
 Notify the methods that an event has occured.

void notify ()
 Notify the methods with an empty event.

void notifyOrEmpty (Event e, Dispatcher *other)
 Notify this dispatcher if non-empty, or the other dispatcher if this one is.

void notifyOrEmpty (Dispatcher *other)
 Notify this dispatcher if non-empty, or the other dispatcher if this one is.

bit isEmpty ()
 Return whether there are no entries in this dispatcher.


Public Attributes

Method[] methods
 The list of methods called by notify.

MethodB[] methodbs
 No-argument-form methods.

Dispatcherdispatchers
 Dispatcher pointers.


Member Function Documentation

void Dispatcher.add Method  method  ) 
 

Add a method to the list.

Frees the previous list if append resulted in re-allocation.


The documentation for this struct was generated from the following file:
Generated on Thu Sep 4 13:12:51 2003 for dig by doxygen 1.3.2