wrench::MessageManager Class Reference
A helper class that manages messages (in terms of memory deallocation to avoid leaks when a message was sent but never received) More...
#include <MessageManager.h>
Static Public Member Functions | |
static void | cleanUpAllMessages () |
Clean up all the messages that MessageManager has stored (so as to free up memory) | |
static void | cleanUpMessages (std::string) |
Clean up messages for a given mailbox (so as to free up memory) More... | |
static void | manageMessage (std::string, SimulationMessage *msg) |
Insert a message in the manager's "database". More... | |
static void | removeReceivedMessages (std::string, SimulationMessage *msg) |
Remove a received message from the "database" of messages. More... | |
Detailed Description
A helper class that manages messages (in terms of memory deallocation to avoid leaks when a message was sent but never received)
Member Function Documentation
◆ cleanUpMessages()
|
static |
Clean up messages for a given mailbox (so as to free up memory)
- Parameters
-
mailbox the mailbox name
◆ manageMessage()
|
static |
Insert a message in the manager's "database".
- Parameters
-
mailbox the name of the relevant mailbox msg the message
- Exceptions
-
std::runtime_error
◆ removeReceivedMessages()
|
static |
Remove a received message from the "database" of messages.
- Parameters
-
mailbox the name of the mailbox from which the message was received msg the message
The documentation for this class was generated from the following files:
- /Users/rafsilva/Documents/isi/workspace/wrench/wrench/include/wrench/util/MessageManager.h
- /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/util/MessageManager.cpp