adevs
|
#include <adevs_msg_manager.h>
Public Member Functions | |
virtual X | clone (X &value)=0 |
virtual void | destroy (X &value)=0 |
This class is for managing memory used by objects that are passed between processors in a parallel simulation.
virtual X adevs::MessageManager::clone | ( | X & | value | ) | [pure virtual] |
Create a copy of the value. This is called by the simulator when the value object is about to leave a thread boundary.
Implemented in adevs::NullMessageManager.
virtual void adevs::MessageManager::destroy | ( | X & | value | ) | [pure virtual] |
Free the value. This is called when the thread that received the object is done with it. Note that the original object may or may not have been deleted when this method is finally called for the copy.
Implemented in adevs::NullMessageManager.