JX Application Framework
|
#include <JMMMonitor.h>
Public Member Functions | |
~JMMMonitor () override | |
![]() | |
JBroadcaster () | |
virtual | ~JBroadcaster () |
JBroadcaster & | operator= (const JBroadcaster &source) |
bool | HasSenders () const |
JSize | GetSenderCount () const |
bool | HasRecipients () const |
JSize | GetRecipientCount () const |
virtual JString | ToString () const |
template<class T > | |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
Protected Member Functions | |
JMMMonitor () | |
void | Receive (JBroadcaster *sender, const Message &message) override |
virtual void | HandleObjectDeletedAsArray (const JMMRecord &record) |
virtual void | HandleArrayDeletedAsObject (const JMMRecord &record) |
virtual void | HandleUnallocatedDeletion (const JUtf8Byte *file, const JUInt32 line, const bool isArray) |
virtual void | HandleMultipleDeletion (const JMMRecord &thisRecord, const JUtf8Byte *file, const JUInt32 line, const bool isArray) |
virtual void | HandleMultipleAllocation (const JMMRecord &thisRecord, const JMMRecord &firstRecord) |
![]() | |
JBroadcaster (const JBroadcaster &source) | |
void | ListenTo (const JBroadcaster *sender) |
void | StopListening (const JBroadcaster *sender) |
void | ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember) |
void | StopListening (const JBroadcaster *sender, const std::type_info &messageType) |
template<class T > | |
void | Send (JBroadcaster *recipient, const T &message) |
template<class T > | |
void | Broadcast (const T &message) |
void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
void | BroadcastWithFeedback (Message *message) |
virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
virtual void | ReceiveGoingAway (JBroadcaster *sender) |
A (conceptually) abstract base class for objects which monitor JMemoryManager activity. Derived classes override the appropriate message handlers to perform their actions. Base code generated by Codemill v0.1.0
|
override |
|
protected |
|
protectedvirtual |
Reimplemented in JMMDebugErrorStream, and JMMErrorPrinter.
|
protectedvirtual |
Called when memory is allocated more than once at the same location (indicates bugs in malloc or JMM, not client code). thisRecord is the record of the allocation that generated the message, firstRecord is the record of the first allocation at that address.
Reimplemented in JMMDebugErrorStream, and JMMErrorPrinter.
|
protectedvirtual |
Called when an already-deleted memory block is deleted again. originalRecord is the JMMRecord for the block including its first deletion, file and line are the location of the multiple deletion that triggered the message. This message cannot be generated unless delete records are being kept; otherwise, the message is UnallocatedDeletion rather than MultipleDeletion.
Reimplemented in JMMDebugErrorStream, and JMMErrorPrinter.
|
protectedvirtual |
Reimplemented in JMMDebugErrorStream, and JMMErrorPrinter.
|
protectedvirtual |
Called when a block is deleted which was never allocated (more precisely, which has no allocation record; this includes multiple deletions if delete records are not being kept).
Reimplemented in JMMDebugErrorStream, and JMMErrorPrinter.
|
overrideprotectedvirtual |
Process the given message from the given sender. This function is not pure virtual because not all classes will want to implement it.
Reimplemented from JBroadcaster.