|
resonance 1.0.1
|
Sink that forwards the messages it receives to its own sinks. More...
#include <delayer.h>


Public Member Functions | |
| virtual | ~Delayer () |
| virtual void | DispatchPriv (Message *pMsg) |
| Act on a message. | |
| Public Member Functions inherited from MsgSink | |
| void * | operator new (size_t nSize) |
| Allocate a sink from the tagged heap under the tag "MsgSink". | |
| void | operator delete (void *pBlock) |
| Release a sink to the tagged heap. | |
| virtual | ~MsgSink () |
| virtual void | Dispatch (Message *pMsg) |
| Accept a message. | |
| Public Member Functions inherited from MsgSource | |
| virtual | ~MsgSource () |
| virtual void | AddSink (MsgSink *pSink) |
| Register a sink, ignoring a sink that is already registered. | |
| virtual void | RemoveSink (MsgSink *pSink) |
| Unregister the first occurrence of a sink. | |
| void | Send (Message *pMsg) const |
| Deliver a message to every registered sink, in registration order. | |
| void | ClearSinks () |
| Unregister every sink. | |
Additional Inherited Members | |
| Public Attributes inherited from MsgSource | |
| int | mGraphBuilt |
| A word no member of this class reads. | |
Sink that forwards the messages it receives to its own sinks.
It has MsgSink at offset 0 and MsgSource at +0x04. Its primary table at 0x00817720 runs four entries: the type function, the destructor at 0x0040cee8, the inherited MsgSink::Dispatch(), and the DispatchPriv() override below. The MsgSource table at 0x008176f8 adjusts this by -4 for the first two entries and retains MsgSource::AddSink() and MsgSource::RemoveSink(). GrooveWorld's setup routine at 0x0018cce8 creates the one instance with a 0x18-byte allocation. The allocation has no room for a member beyond the two bases.
The class is declared for GrooveWorld, which hands it every CripplePacket. The default constructor at 0x0040d060 is the implicit one and is not written. It stores the MsgSink table, runs the MsgSource default constructor at 0x00115cc0, and then installs the two tables above.
The unreferenced forwarder at 0x0040d0d0 in this unit, byte-identical to MsgSplitter::DispatchPriv() at 0x001ab4a8, has its unwind record at 0x006de75c as its only reference and is recorded here rather than declared.
|
virtual |
|
virtual |
Act on a message.
Primary table slot 3.
| pMsg | The message. |
Implements MsgSink.