RepastHPC  2.3.1
Public Member Functions | Public Attributes | Friends | List of all members
repast::Request_Packet< Content > Class Template Reference

Contains information sent as agents are exchanged, either in response to requests or agent movement. More...

#include <RepastProcess.h>

Public Member Functions

 Request_Packet (std::vector< Content > *agentContent, std::map< std::string, std::vector< ProjectionInfoPacket * > > *projectionInfo)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

std::vector< Content > * agentContentPtr
 
std::map< std::string, std::vector< ProjectionInfoPacket * > > * projectionInfoPtr
 

Friends

class boost::serialization::access
 

Detailed Description

template<typename Content>
class repast::Request_Packet< Content >

Contains information sent as agents are exchanged, either in response to requests or agent movement.

Contains both agent raw information (of type 'Content') and projection information.

Note: A 'Packet' is responsible for deleting the objects to which it points This is essentially not optional: when boost sends the Packet via MPI the locations at which it places the different elements are not known (no 'new' is called in the user code). Some code must be written to track these down and delete, and it is manifestly easier to provide that code in the Packet itself than to rewrite where needed, inspecting the Packet for the locations


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