59 void set_tid(
const size_t tid );
136 assert( pos < std::numeric_limits< unsigned int >::max() );
149 assert( syn_id < std::numeric_limits< unsigned char >::max() );
264 assert( source_lid <
MAX_LID );
271 assert( source_tid <
MAX_TID );
Definition target_data.h:117
unsigned int recv_buffer_pos_
Definition target_data.h:119
void set_recv_buffer_pos(const size_t pos)
Definition target_data.h:134
synindex get_syn_id() const
Definition target_data.h:154
unsigned char syn_id_
Definition target_data.h:120
size_t get_recv_buffer_pos() const
Definition target_data.h:141
void set_syn_id(const synindex syn_id)
Definition target_data.h:147
Definition target_data.h:37
void set_tid(const size_t tid)
Sets the target ID.
Definition target_data.h:93
size_t get_lcid() const
Returns the local connection ID.
Definition target_data.h:87
void set_syn_id(const synindex syn_id)
Sets the synapse-type ID.
Definition target_data.h:105
unsigned int syn_id_
Definition target_data.h:41
unsigned int tid_
Definition target_data.h:40
synindex get_syn_id() const
Returns the synapse-type ID.
Definition target_data.h:111
size_t get_tid() const
Returns the target ID.
Definition target_data.h:99
void set_lcid(const size_t lcid)
Sets the local connection ID.
Definition target_data.h:81
unsigned int lcid_
Definition target_data.h:39
Used to communicate part of the connection infrastructure from post- to presynaptic side.
Definition target_data.h:175
void reset_marker()
Definition target_data.h:220
static constexpr uint8_t NUM_BITS_MARKER
Definition target_data.h:181
unsigned int source_tid_
thread index of presynaptic neuron
Definition target_data.h:188
unsigned int marker_
Definition target_data.h:189
void set_complete_marker()
Definition target_data.h:226
void set_end_marker()
Definition target_data.h:232
bool is_invalid_marker() const
Definition target_data.h:256
SecondaryTargetDataFields secondary_data
Definition target_data.h:198
static constexpr int MAX_LID
Definition target_data.h:184
bool is_primary_
TargetData has TargetDataFields else SecondaryTargetDataFields.
Definition target_data.h:191
static constexpr uint8_t NUM_BITS_LID
Definition target_data.h:180
bool is_primary() const
Definition target_data.h:294
size_t get_source_tid() const
Definition target_data.h:282
TargetDataFields target_data
Definition target_data.h:197
void set_invalid_marker()
Definition target_data.h:238
bool is_end_marker() const
Definition target_data.h:250
void set_source_lid(const size_t source_lid)
Definition target_data.h:262
static constexpr uint8_t NUM_BITS_IS_PRIMARY
Definition target_data.h:182
bool is_complete_marker() const
Definition target_data.h:244
void set_is_primary(const bool is_primary)
Definition target_data.h:288
void set_source_tid(const size_t source_tid)
Definition target_data.h:269
unsigned int source_lid_
local id of presynaptic neuron
Definition target_data.h:186
size_t get_source_lid() const
Definition target_data.h:276
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
StaticAssert< sizeof(TargetData)==12 >::success success_target_data_size
check legal size
Definition target_data.h:217
constexpr uint8_t NUM_BITS_SYN_ID
Definition nest_types.h:77
constexpr uint8_t NUM_BITS_LCID
Definition nest_types.h:83
constexpr int64_t MAX_TID
Definition nest_types.h:95
constexpr uint8_t NUM_BITS_TID
Definition nest_types.h:76
StaticAssert< sizeof(SecondaryTargetDataFields)==8 >::success success_secondary_target_data_fields_size
check legal size
Definition target_data.h:131
StaticAssert< sizeof(TargetDataFields)==8 >::success success_target_data_fields_size
check legal size
Definition target_data.h:78
enum_status_target_data_id
Definition target_data.h:160
@ TARGET_DATA_ID_INVALID
Definition target_data.h:164
@ TARGET_DATA_ID_DEFAULT
Definition target_data.h:161
@ TARGET_DATA_ID_END
Definition target_data.h:163
@ TARGET_DATA_ID_COMPLETE
Definition target_data.h:162
constexpr uint64_t generate_max_value(const uint8_t num_bits)
Definition nest_types.h:66
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
Compile time assertions.
Definition static_assert.h:47