adevs
Public Member Functions | List of all members
adevs::MessageManager< X > Class Template Referenceabstract

#include <adevs_msg_manager.h>

Inheritance diagram for adevs::MessageManager< X >:
adevs::NullMessageManager< X >

Public Member Functions

virtual X clone (X &value)=0
 
virtual void destroy (X &value)=0
 

Detailed Description

template<typename X>
class adevs::MessageManager< X >

This class is for managing memory used by objects that are passed between processors in a parallel simulation.

Member Function Documentation

template<typename X>
virtual X adevs::MessageManager< X >::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< X >.

template<typename X>
virtual void adevs::MessageManager< X >::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< X >.


The documentation for this class was generated from the following file: