|
resonance 1.0.1
|
Sink that delivers everything it receives to every registered sink. More...
#include <msgsplitter.h>


Public Member Functions | |
| MsgSplitter () | |
| virtual | ~MsgSplitter () |
| virtual void | DispatchPriv (Message *pMsg) |
| Deliver a message to every registered sink. | |
| 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 delivers everything it receives to every registered sink.
Its RTTI descriptor is at 0x008f0800. It has MsgSink at offset 0 and MsgSource at offset 4. The object is 0x18 bytes: the MsgSink vptr at +0x00, the MsgSource subobject over +0x04 through +0x17, and the MsgSource vptr inside that at +0x14. The class declares no data member.
Its primary table is at 0x007e0128 and its MsgSource table at 0x007e0100. MuseSynth embeds one at +0x0c and exposes it as the sink every player it creates sends to.
The three bodies sit inside MuseSynth's run of code, so they are written in that translation unit. The name comes from the RTTI descriptor.
| MsgSplitter::MsgSplitter | ( | ) |
|
virtual |
|
virtual |
Deliver a message to every registered sink.
Primary table slot 3. Forwards to MsgSource::Send().
| pMsg | The message. |
Implements MsgSink.