MTPropagatedSpikeBuffers.cpp

Go to the documentation of this file.
00001 #include "MTPropagatedSpikeBuffers.h"
00002 
00003 MTPropagatedSpikeBuffers::MTPropagatedSpikeBuffers(int numThreads, int minDelay, int maxDelay, int chunkSize)
00004 {
00005     buffers.resize(numThreads) ;
00006 
00007     for (int i = 0 ; i < numThreads ; i ++) {
00008         buffers[i].reserve(numThreads);
00009         for (int j = 0 ; j < numThreads ; j++ ) {
00010             PropagatedSpikeBuffer *buf = new PropagatedSpikeBuffer(minDelay, maxDelay, chunkSize);
00011             buffers[i].push_back(buf);
00012         }
00013     }
00014 }
00015 
00016 
00017 MTPropagatedSpikeBuffers::~MTPropagatedSpikeBuffers()
00018 {
00019     int nThreads = buffers.size();
00020     for (int i = 0; i < nThreads ; ++i) {
00021         for (int j = 0; j < nThreads ; ++j) {
00022             delete buffers[i][j];
00023         }
00024     }
00025 }

Generated on Wed Jul 9 16:34:38 2008 for PCSIM by  doxygen 1.5.5