|
|
The Event class is an internal part of the Notifier/Listener framework, used to multicast a particular event to a set of Listener objects.
It is a class that can 'hold' zero or more parameters. The upper limit is set by the number of template parameters and invokeImpl member functions - more can be added if you really need them.
If a parameter is not needed, the template declaration will provide def_type which counts as 'no parameter'.
typedef etype event_type | event_type |
Event (etype data, Clock time)
| Event |
Creates an Event with the given data and Clock.
Parameters:
data | The event data (of template parameter type) |
time | The event time |
etype data | data |
Clock time | time |
int operator< (const Event | operator< |
[const]
This comparison operator only compares event times, NOT the data contents.
int operator<= (const Event | operator<= |
[const]
This comparison operator only compares event times, NOT the data contents.
int operator> (const Event | operator> |
[const]
This comparison operator only compares event times, NOT the data contents.
int operator>= (const Event | operator>= |
[const]
This comparison operator only compares event times, NOT the data contents.
int operator== (const Event | operator== |
[const]
This comparison operator only compares event times, NOT the data contents.
bool equals (const Event | equals |
[const]
Compares two Events for equality, checking both the times and the data.
equal_to (class) | equal_to |
This functor returns the value of equals for the Event class.
See also: equals
explicit Event (listener_func func,
const p1_type &p1 = p1_type(),
const p2_type &p2 = p2_type(),
const p3_type &p3 = p3_type(),
const p4_type &p4 = p4_type())
| Event |
Ctor. You specify the member function of the
interface_type
class to call, and the parameters to call
it with.
void callOnEvery (void_list &listeners)
| callOnEvery |
Calls 'func' on the specified set of listeners
.
This function delegates to the appropriate invokeImpl method. Which one to call is worked out using the arg_count utility.
Generated by: pete on philemon on Wed May 25 14:39:52 2005, using kdoc 2.0a54. |