All Classes Namespaces Files Functions Variables Typedefs Macros
cliz::Communicator Class Reference

#include <clizCommunicator.h>

Public Member Functions

 Communicator (std::vector< Save * > &iInputSaveVec)
 
void setCallbackFunc (CallBackFunc iCallbackFunction)
 
void threadFunc ()
 

Public Attributes

ThreadthisThread
 

Detailed Description

Modules Except for the Accumulator and the Communicator, all Modules share the same structure. For initialization, each Module needs a parameter handle, an std::vector of Saves for their input, an std::vector of Saves for their output and an std::vector of IndicesStructs to know which output Saves require which output. During initialization a worker thread is spawned that tries to receive input from all input Saves. Once one ChunkPtrStruct from each input Save was obtained, functions are called that perform the respective jobs of the module. For each output Save, based on the respective IndicesStruct, the data obtained from these functions is copied and a ChunkPtrStruct that holds a pointer to that data is pushed in the output Save.Module: Communicator The communicator calls a callback function each time a spike was detected, passing the following data Spike's datapoints Spike's cluster ID Spike's timestamp Fusions (IDs of clusters that were fused)

Constructor & Destructor Documentation

cliz::Communicator::Communicator ( std::vector< Save * > &  iInputSaveVec)

Module: Communicator Constructor

Member Function Documentation

void cliz::Communicator::setCallbackFunc ( CallBackFunc  iCallbackFunction)

Module: Communicator Setting the callback function to be called by the Communicator

Parameters
[in]iCallbackFunctionCallback function

Here is the call graph for this function:

void cliz::Communicator::threadFunc ( )

Module: Communicator Worker thread

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Thread* cliz::Communicator::thisThread

Module: Communicator Constructor


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