All Classes Namespaces Files Functions Variables Typedefs Macros
cliz::ChunkPtrStruct Struct Reference

#include <clizSave.h>

Collaboration diagram for cliz::ChunkPtrStruct:

Public Member Functions

 ChunkPtrStruct ()
 
 ChunkPtrStruct (unsigned int iNum)
 
 ~ChunkPtrStruct ()
 
void setNum (unsigned int iNum)
 
ChunkPtrStructoperator= (const ChunkPtrStruct &CPS2)
 
 ChunkPtrStruct (const ChunkPtrStruct &CPS2)
 

Public Attributes

void ** chunk
 
unsigned int * cols
 
unsigned int * rows
 
unsigned int num
 
MemoryManagermemMan
 

Detailed Description

Struct to hold pointers to arrays. It is used to transfer data (or rather pointers to data) from one module to another. Example: The Detector sends spikes to the Whitener by allocating memory for these spikes, coping the spikes into that memory, setting chunk[0] to the pointer to that memory, setting cols[0] to the number of datapoints per spike and rows[0] to the number of spikes. Thus the receiver knows the number of spikes, the number of values per spike and the length of the (one dimensional) array. The Whitener also wants the whitening matrix from the Detector. So the pointer to a copy of the whitening matrix would be stored in chunk[1]. So only one ChunkPtrStruct is required to send different types of data from one module to another.

Constructor & Destructor Documentation

cliz::ChunkPtrStruct::ChunkPtrStruct ( )
inline

Here is the call graph for this function:

cliz::ChunkPtrStruct::ChunkPtrStruct ( unsigned int  iNum)
inline

Here is the call graph for this function:

cliz::ChunkPtrStruct::~ChunkPtrStruct ( )
inline

Here is the call graph for this function:

cliz::ChunkPtrStruct::ChunkPtrStruct ( const ChunkPtrStruct CPS2)
inline

Here is the call graph for this function:

Member Function Documentation

ChunkPtrStruct& cliz::ChunkPtrStruct::operator= ( const ChunkPtrStruct CPS2)
inline

Here is the call graph for this function:

void cliz::ChunkPtrStruct::setNum ( unsigned int  iNum)
inline

Here is the call graph for this function:

Member Data Documentation

void** cliz::ChunkPtrStruct::chunk
unsigned int* cliz::ChunkPtrStruct::cols
MemoryManager* cliz::ChunkPtrStruct::memMan
unsigned int cliz::ChunkPtrStruct::num
unsigned int* cliz::ChunkPtrStruct::rows

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