Class MsgNone

Class Documentation

class MsgNone

This empty class is used when messaging is not enabled for an agent function It also provides the best overview of the required components of a new messsaging type

Public Types

typedef unsigned int size_type

Common size type

class CUDAModelHandler : public MsgSpecialisationHandler

Provides specialisation behaviour for messages between agent functions e.g. allocates/initialises additional data structure memory, sorts messages and builds an index Created and owned by CUDAMessage

Public Functions

inline explicit CUDAModelHandler(CUDAMessage &a)

Constructor

Public Members

CUDAMessage &sim_message

Owning CUDAMessage

class In

Provides message input functionality during agent functions Constructed and owned by DeviceAPI

Public Functions

__device__ inline In(Curve::NamespaceHash, Curve::NamespaceHash, const void*)

Constructor Requires CURVE hashes for agent function and message name to retrieve variable memory locations Takes a device pointer to a struct for metadata related to accessing the messages (e.g. an index data structure)

class Out

Provides message output functionality during agent functions Constructed and owned by DeviceAPI

Public Functions

__device__ inline Out(Curve::NamespaceHash, Curve::NamespaceHash, const void*, unsigned int*)

Constructor Requires CURVE hashes for agent function and message name to retrieve variable memory locations Takes a device pointer to a struct for metadata related to accessing the messages (e.g. an index data structure)