GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
SpikeRecorder< Writer > Class Template Reference

Class to read spikes from neuron groups. More...

#include <spikeRecorder.h>

Inheritance diagram for SpikeRecorder< Writer >:

Public Types

typedef unsigned int &(* GetCurrentSpikeCountFunc) (unsigned int)
 
typedef unsigned int *(* GetCurrentSpikesFunc) (unsigned int)
 

Public Member Functions

template<typename... WriterArgs>
 SpikeRecorder (unsigned int batch, GetCurrentSpikesFunc getCurrentSpikes, GetCurrentSpikeCountFunc getCurrentSpikeCount, WriterArgs &&... writerArgs)
 
template<typename... WriterArgs>
 SpikeRecorder (GetCurrentSpikesFunc getCurrentSpikes, GetCurrentSpikeCountFunc getCurrentSpikeCount, WriterArgs &&... writerArgs)
 
 SpikeRecorder (SpikeRecorder< Writer > &&other)=default
 
void record (double t)
 
unsigned int getSum () const
 

Detailed Description

template<typename Writer = SpikeWriterText>
class SpikeRecorder< Writer >

Class to read spikes from neuron groups.

Member Typedef Documentation

◆ GetCurrentSpikeCountFunc

template<typename Writer = SpikeWriterText>
typedef unsigned int&(* SpikeRecorder< Writer >::GetCurrentSpikeCountFunc) (unsigned int)

◆ GetCurrentSpikesFunc

template<typename Writer = SpikeWriterText>
typedef unsigned int*(* SpikeRecorder< Writer >::GetCurrentSpikesFunc) (unsigned int)

Constructor & Destructor Documentation

◆ SpikeRecorder() [1/3]

template<typename Writer = SpikeWriterText>
template<typename... WriterArgs>
SpikeRecorder< Writer >::SpikeRecorder ( unsigned int  batch,
GetCurrentSpikesFunc  getCurrentSpikes,
GetCurrentSpikeCountFunc  getCurrentSpikeCount,
WriterArgs &&...  writerArgs 
)
inline

◆ SpikeRecorder() [2/3]

template<typename Writer = SpikeWriterText>
template<typename... WriterArgs>
SpikeRecorder< Writer >::SpikeRecorder ( GetCurrentSpikesFunc  getCurrentSpikes,
GetCurrentSpikeCountFunc  getCurrentSpikeCount,
WriterArgs &&...  writerArgs 
)
inline

◆ SpikeRecorder() [3/3]

template<typename Writer = SpikeWriterText>
SpikeRecorder< Writer >::SpikeRecorder ( SpikeRecorder< Writer > &&  other)
default

Member Function Documentation

◆ getSum()

template<typename Writer = SpikeWriterText>
unsigned int SpikeRecorder< Writer >::getSum ( ) const
inline

◆ record()

template<typename Writer = SpikeWriterText>
void SpikeRecorder< Writer >::record ( double  t)
inline

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