Used to communicate spikes. More...
#include <spike_data.h>
Public Member Functions | |
| SpikeData () | |
| SpikeData (const SpikeData &rhs) | |
| SpikeData (const Target &target, const size_t lag, const bool is_flush_event) | |
| SpikeData (const size_t tid, const synindex syn_id, const size_t lcid, const unsigned int lag) | |
| SpikeData & | operator= (const SpikeData &rhs) |
| void | set (const size_t tid, const synindex syn_id, const size_t lcid, const unsigned int lag, const double offset) |
| Required in connection with direct-send events. | |
| template<class TargetT > | |
| void | set (const TargetT &target, const unsigned int lag) |
| size_t | get_lcid () const |
| Returns local connection ID. | |
| void | set_lcid (size_t) |
| Sets lcid value. | |
| unsigned int | get_lag () const |
| Returns lag in min-delay interval. | |
| size_t | get_tid () const |
| Returns thread index. | |
| synindex | get_syn_id () const |
| Returns synapse-type index. | |
| unsigned int | get_marker () const |
| Returns marker. | |
| void | reset_marker () |
| Resets the status flag to default value. | |
| void | set_complete_marker () |
| Sets the status flag to complete marker. | |
| void | set_end_marker () |
| Sets the status flag to end marker. | |
| void | set_invalid_marker () |
| Sets the status flag to invalid marker. | |
| bool | is_complete_marker () const |
| Returns whether the marker is the complete marker. | |
| bool | is_end_marker () const |
| Returns whether the marker is the end marker. | |
| bool | is_invalid_marker () const |
| Returns whether the marker is the invalid marker. | |
| bool | is_flush_event () const |
| Returns whether this spike is a flush event. | |
| double | get_offset () const |
| Returns offset. | |
| void | set_flush_event_flag (bool is_flush_event) |
| Sets the flush event flag. | |
Protected Attributes | |
| size_t | lcid_: NUM_BITS_LCID |
| local connection index | |
| unsigned int | marker_: NUM_BITS_MARKER_SPIKE_DATA |
| status flag | |
| unsigned int | flush_event_: NUM_BITS_FLUSH_EVENT |
| flush event flag | |
| unsigned int | lag_: NUM_BITS_LAG |
| lag in this min-delay interval | |
| unsigned int | tid_: NUM_BITS_TID |
| thread index | |
| synindex | syn_id_: NUM_BITS_SYN_ID |
| synapse-type index | |
Static Protected Attributes | |
| static constexpr int | MAX_LAG = generate_max_value( NUM_BITS_LAG ) |
|
inline |
|
inline |
|
inline |
References flush_event_, nest::FLUSH_EVENT_TRUE, and is_flush_event().
|
inline |
|
inline |
Returns lag in min-delay interval.
References lag_.
Referenced by nest::OffGridSpikeData::operator=().
|
inline |
Returns local connection ID.
References lcid_.
Referenced by nest::ConnectionManager::fill_target_buffer(), nest::OffGridSpikeData::operator=(), and nest::Event::retrieve_sender_node_id_from_source_table().
|
inline |
Returns marker.
References marker_.
Referenced by nest::OffGridSpikeData::operator=().
|
inline |
Returns offset.
|
inline |
Returns synapse-type index.
References syn_id_.
Referenced by nest::OffGridSpikeData::operator=(), and nest::Event::retrieve_sender_node_id_from_source_table().
|
inline |
Returns thread index.
References tid_.
Referenced by nest::ConnectionManager::fill_target_buffer(), nest::OffGridSpikeData::operator=(), and nest::Event::retrieve_sender_node_id_from_source_table().
|
inline |
Returns whether the marker is the complete marker.
References marker_, and nest::SPIKE_DATA_ID_COMPLETE.
|
inline |
Returns whether the marker is the end marker.
References marker_, and nest::SPIKE_DATA_ID_END.
|
inline |
Returns whether this spike is a flush event.
References flush_event_, and nest::FLUSH_EVENT_TRUE.
Referenced by nest::Event::is_flush_event(), set_flush_event_flag(), and SpikeData().
|
inline |
Returns whether the marker is the invalid marker.
References marker_, and nest::SPIKE_DATA_ID_INVALID.
|
inline |
Resets the status flag to default value.
References marker_, and nest::SPIKE_DATA_ID_DEFAULT.
|
inline |
Required in connection with direct-send events.
References lag_, lcid_, marker_, MAX_LAG, nest::MAX_LCID, nest::MAX_SYN_ID, nest::MAX_TID, nest::SPIKE_DATA_ID_DEFAULT, syn_id_, and tid_.
Referenced by nest::OffGridSpikeData::set(), and nest::Event::set_sender_node_id_info().
|
inline |
|
inline |
Sets the status flag to complete marker.
References marker_, and nest::SPIKE_DATA_ID_COMPLETE.
|
inline |
Sets the status flag to end marker.
References marker_, and nest::SPIKE_DATA_ID_END.
|
inline |
Sets the flush event flag.
References flush_event_, nest::FLUSH_EVENT_FALSE, nest::FLUSH_EVENT_TRUE, and is_flush_event().
Referenced by nest::Event::set_flush_event_flag().
|
inline |
Sets the status flag to invalid marker.
References marker_, and nest::SPIKE_DATA_ID_INVALID.
|
inline |
Sets lcid value.
References lcid_, and nest::MAX_LCID.
|
protected |
flush event flag
Referenced by is_flush_event(), operator=(), set_flush_event_flag(), and SpikeData().
|
protected |
lag in this min-delay interval
Referenced by get_lag(), nest::OffGridSpikeData::operator=(), operator=(), nest::OffGridSpikeData::operator=(), set(), nest::OffGridSpikeData::set(), and set().
|
protected |
local connection index
Referenced by get_lcid(), nest::OffGridSpikeData::operator=(), operator=(), nest::OffGridSpikeData::operator=(), set(), nest::OffGridSpikeData::set(), set(), and set_lcid().
|
protected |
status flag
Referenced by get_marker(), is_complete_marker(), is_end_marker(), is_invalid_marker(), nest::OffGridSpikeData::operator=(), operator=(), nest::OffGridSpikeData::operator=(), reset_marker(), set(), nest::OffGridSpikeData::set(), set(), set_complete_marker(), set_end_marker(), and set_invalid_marker().
|
staticconstexprprotected |
Referenced by set(), nest::OffGridSpikeData::set(), and set().
|
protected |
synapse-type index
Referenced by get_syn_id(), nest::OffGridSpikeData::operator=(), operator=(), nest::OffGridSpikeData::operator=(), set(), nest::OffGridSpikeData::set(), and set().
|
protected |
thread index
Referenced by get_tid(), nest::OffGridSpikeData::operator=(), operator=(), nest::OffGridSpikeData::operator=(), set(), nest::OffGridSpikeData::set(), and set().