class MessageManager

the purpose of this object is to hold a pool of Message objects, in creating all of the messages at one time, or in increments of CHUNK_SIZE (chosen arbitrarily for now, but a multiple of 2), its purpose is to increase performance of the overall system by avoiding allocation and deallocation of large quantities of messages on the fly

Public Methods

MessageManager(int)
constructor
~MessageManager()
destructor
void SetStimCount(int)
Set the number of stimulus message that may be needed during the simulation
void SetSynCount(int)
Set the number of synapse messages that may be needed during the simulation
void SetReportCount(int)
Set the number of report messages that may be needed during the simuluation
void CreateAllMessages()
Allocate message pool based on the estimated number of total messages needed
Message* NewMessage(int, int, int, int, int, int, int, int, double, int, int)
Request new message and initialize with values given
Message* NewMessage(int, int, int, int, int, int, int, int, double, double, int, int)
Request new message and initialize with values given
void DeleteMessage(Message *)
Return a message to the message pool
int ReturnTotalMessages()
Accessor function to get value of MPSize
void GetCounts(int *total, int *free)
Accessor function to get values of vector sizes


Documentation

the purpose of this object is to hold a pool of Message objects, in creating all of the messages at one time, or in increments of CHUNK_SIZE (chosen arbitrarily for now, but a multiple of 2), its purpose is to increase performance of the overall system by avoiding allocation and deallocation of large quantities of messages on the fly
MessageManager(int)
constructor

~MessageManager()
destructor

void SetStimCount(int)
Set the number of stimulus message that may be needed during the simulation

void SetSynCount(int)
Set the number of synapse messages that may be needed during the simulation

void SetReportCount(int)
Set the number of report messages that may be needed during the simuluation

void CreateAllMessages()
Allocate message pool based on the estimated number of total messages needed

Message* NewMessage(int, int, int, int, int, int, int, int, double, int, int)
Request new message and initialize with values given

Message* NewMessage(int, int, int, int, int, int, int, int, double, double, int, int)
Request new message and initialize with values given

void DeleteMessage(Message *)
Return a message to the message pool

int ReturnTotalMessages()
Accessor function to get value of MPSize

void GetCounts(int *total, int *free)
Accessor function to get values of vector sizes

Parameters:
total - address of integer to store size of vector vMessagePool
free - address of integer to store soze of vector vMessageFree


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de