NodeLocalMultiTargetDelayMap.h

Go to the documentation of this file.
00001 #ifndef NODELOCALMULTITARGETDELAYMAP_H_
00002 #define NODELOCALMULTITARGETDELAYMAP_H_
00003 
00004 #include <vector>
00005 #include <map>
00006 
00007 #include "globaldefinitions.h"
00008 #include "SimObject.h"
00009 
00010 using std::map;
00011 using std::vector;
00012 
00013 class NodeLocalMultiTargetDelayMap
00014 {
00015 
00016 public:
00017 
00018     typedef map< delaystep_t, spikegroupid_t> delaymaptype;
00019     typedef delaymaptype::const_iterator const_iterator;
00020 
00021     NodeLocalMultiTargetDelayMap();
00022     virtual ~NodeLocalMultiTargetDelayMap();
00023 
00024     void insert(engineid_t src_eid, local_objectid_t oid, engineid_t dest_eng, delaystep_t delay,
00025                 spikegroupid_t group);
00026 
00027     spikegroupid_t find(engineid_t src_eng, local_objectid_t oid, engineid_t dest_eng, delaystep_t delay);
00028 
00029     const_iterator beginDelays(engineid_t src_eng, local_objectid_t localid, engineid_t dest_eng);
00030 
00031     const_iterator endDelays(engineid_t src_eng, local_objectid_t localid, engineid_t dest_eng);
00032 
00033     int lastDestEngine(engineid_t src_eng, local_objectid_t localid);
00034 
00035 protected :
00036     // [src_eng][localid][dest_eng]-> pairs(delay, spikegroup)
00037     vector<vector<vector<delaymaptype> > > _map;
00038 };
00039 
00040 #endif /* NODELOCALMULTITARGETDELAYMAP_H_ */

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