|
resonance 1.0.1
|
Neutraliser of the phrases a catching track has already captured. More...
#include <phraseneutralizer.h>


Public Member Functions | |
| PhraseNeutralizer (const TrackData *pTrackData, PhraseMgr *pPhraseMgr) | |
| virtual void | DispatchPriv (Message *pMsg) |
| Act on 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. | |
| 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. | |
Additional Inherited Members | |
| Public Attributes inherited from MsgSource | |
| int | mGraphBuilt |
| A word no member of this class reads. | |
Neutraliser of the phrases a catching track has already captured.
Its RTTI descriptor is at 0x008ff3f0. It is built over MsgSource at offset 0 and MsgSink at offset 20. Its primary table is at 0x007e2e88 with four entries. Its MsgSink subobject table at 0x007e2e60 adjusts this by -20 and fills slot 3 with DispatchPriv(). MsgSource coming first is why CatchingSTG's wiring adjusts by +0x14 when it registers this object as a sink and guards the adjustment against a null pointer. CatchingSTG's tagged allocation measures the object at 0x3c bytes.
The destructor at 0x001c1478 is implicitly declared. It restores the base tables, frees MsgSource's vector, and releases the object under MsgSink's tag.
| pTrackData | The track description. The constructor copies its track number. |
| pPhraseMgr | The phrase manager of the track. |
|
virtual |
Act on a message.
Slot 3 of the MsgSink table. A NeutralizeMsg goes to PostTrackNeutralizedMsg(), and every other message is discarded.
| pMsg | The message. |
Implements MsgSink.