33 #include <boost/serialization/utility.hpp> 34 #include <boost/serialization/split_member.hpp> 51 template<
class Archive>
52 void serialize(Archive & ar,
const unsigned int version)
54 for (
unsigned int i = 0 ; i < ndelay ; ++i ) {
59 for (
unsigned int i = 0 ; i < ndelay ; ++i ) {
68 int numSpikeAttributes;
void push_back(NeuronID i)
Allows to use SpikeDelay like a queue.
Definition: SpikeDelay.cpp:121
friend class boost::serialization::access
Definition: SpikeDelay.h:50
int get_num_attributes()
Returns the number of spike attributes per spike.
Definition: SpikeDelay.cpp:139
void clear()
Definition: SpikeDelay.cpp:72
std::vector< NeuronID > SpikeContainer
Spike container type. Used for storing spikes.
Definition: auryn_definitions.h:161
void insert_spike_and_attrib(NeuronID i, AurynState attr, AurynTime ahead)
Allows to insert spikes with a single attribute so many time steps ahead with less than max delay...
Definition: SpikeDelay.cpp:115
std::vector< float > AttributeContainer
Attribute container type. Used for storing spike attributes that are needed for efficient STP impleme...
Definition: auryn_definitions.h:162
void print()
Print delay contents for debugging .
Definition: SpikeDelay.cpp:150
Delay object for spikes which is synchronized between nodes using the SyncBuffer formalism implemente...
Definition: SpikeDelay.h:47
virtual ~SpikeDelay()
The default destructor.
Definition: SpikeDelay.cpp:80
void inc_num_attributes(int x)
Internally used by SyncBuffer to submit x attributes with spikes in this delay.
Definition: SpikeDelay.cpp:144
Definition: ABSConnection.h:38
AurynFloat AurynState
Type for Auryn state variables (default single precision since it needs to be compatible with auryn_v...
Definition: auryn_definitions.h:160
void set_delay(int delay)
Set delay in number of timesteps.
Definition: SpikeDelay.cpp:41
SpikeContainer * get_spikes_immediate()
Returns the spikes stored into the delay within this very same time step.
Definition: SpikeDelay.cpp:90
void insert_spike(NeuronID i, AurynTime ahead)
Allows to insert spikes so many time steps ahead with less than max delay.
Definition: SpikeDelay.cpp:110
SpikeDelay(int delaysteps=MINDELAY)
The default constructor.
Definition: SpikeDelay.cpp:32
SpikeContainer * get_spikes(unsigned int pos=1)
Returns the spikes at a given delay position.
Definition: SpikeDelay.cpp:85
void set_clock_ptr(AurynTime *clock)
Internal function to set clock pointer.
Definition: SpikeDelay.cpp:105
int get_delay()
Get delay time in AurynTime.
Definition: SpikeDelay.cpp:57
#define MINDELAY
Switches collection of timing stats in some classes like SyncBuffer and system.
Definition: auryn_definitions.h:82
AttributeContainer * get_attributes_immediate()
Like get_spikes_immediate but returns the spike attributes.
Definition: SpikeDelay.cpp:100
NeuronID AurynTime
Defines Auryns discrete time unit of the System clock. Change to AurynLong if 120h of simtime are not...
Definition: auryn_definitions.h:155
AttributeContainer * get_attributes(unsigned int pos=1)
Like get_spikes but returns the spike attributes.
Definition: SpikeDelay.cpp:95
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151