SpikeTargetGroupPool.cpp

Go to the documentation of this file.
00001 #include "SpikeTargetGroupPool.h"
00002 
00003 SpikeTargetGroupPool::SpikeTargetGroupPool()
00004 {}
00005 
00006 SpikeTargetGroupPool::~SpikeTargetGroupPool()
00007 {}
00008 
00009 spikegroupid_t SpikeTargetGroupPool::addSpikeTarget( spikegroupid_t group, SimObject *receiver, spikeport_t port )
00010 {
00011     if( group >= (spikegroupid_t)pool.size() ) {
00012         pool.resize( group + 1 );
00013     }
00014     pool[ group ].push_back( SpikeTarget(receiver,port) );
00015     return group;
00016 }
00017 
00018 spikegroupid_t SpikeTargetGroupPool::addSpikeTarget( SimObject *receiver, spikeport_t port )
00019 {
00020     spikegroupid_t group = pool.size();
00021     pool.resize( group + 1 );
00022     pool[ group ].push_back( SpikeTarget(receiver,port) );
00023     return group;
00024 }

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