23#ifndef TARGET_TABLE_DEVICES_H
24#define TARGET_TABLE_DEVICES_H
82 const size_t s_node_id,
103 void send_to_device(
const size_t tid,
const size_t s_node_id,
Event& e,
const std::vector< ConnectorModel* >& cm );
105 const size_t s_node_id,
107 const std::vector< ConnectorModel* >& cm );
112 void send_from_device(
const size_t tid,
const size_t ldid,
Event& e,
const std::vector< ConnectorModel* >& cm );
128 const size_t requested_target_node_id,
131 const long synapse_label,
132 std::deque< ConnectionID >& conns )
const;
138 const size_t requested_target_node_id,
141 const long synapse_label,
142 std::deque< ConnectionID >& conns )
const;
148 const size_t requested_target_node_id,
151 const long synapse_label,
152 std::deque< ConnectionID >& conns )
const;
158 const size_t requested_target_node_id,
161 const long synapse_label,
162 std::deque< ConnectionID >& conns )
const;
168 const size_t source_node_id,
171 const size_t lcid )
const;
180 const size_t lcid )
const;
186 const size_t source_node_id,
213 const size_t lcid )
const
233 const std::vector< ConnectorModel* >& cm )
241 ( *it )->send_to_all( tid, cm, e );
253 std::deque< ConnectionID > conns;
255 if ( not conns.empty() )
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Definition connector_model.h:69
Encapsulate information sent between nodes.
Definition event.h:103
Base class for all NEST network objects.
Definition node.h:99
Base class of secondary events.
Definition secondary_event.h:50
This data structure stores the connections between local neurons and devices.
Definition target_table_devices.h:51
TargetTableDevices()
Definition target_table_devices.cpp:32
void set_synapse_status_to_device(const size_t tid, const size_t source_node_id, const synindex syn_id, ConnectorModel &cm, const Dictionary &dict, const size_t lcid)
Sets synapse status of connection from neuron to device.
Definition target_table_devices_impl.h:127
void set_synapse_status_from_device(const size_t tid, const size_t ldid, const synindex syn_id, ConnectorModel &cm, const Dictionary &dict, const size_t lcid)
Sets synapse status of connection from device to neuron.
Definition target_table_devices.h:219
~TargetTableDevices()
Definition target_table_devices.cpp:36
void get_connections_to_device_for_lid_(const size_t lid, const size_t requested_target_node_id, const size_t tid, const synindex syn_id, const long synapse_label, std::deque< ConnectionID > &conns) const
Returns all connections from particular neuron to devices.
Definition target_table_devices.cpp:136
void add_connection_to_device(Node &source, Node &target, const size_t s_node_id, const size_t tid, const synindex syn_id, const Dictionary &p, const double d, const double w)
Adds a connection from the neuron source to the device target.
Definition target_table_devices_impl.h:38
void get_connections_to_devices_(const size_t requested_source_node_id, const size_t requested_target_node_id, const size_t tid, const synindex synapse_id, const long synapse_label, std::deque< ConnectionID > &conns) const
Returns all connections from neurons to devices.
Definition target_table_devices.cpp:110
void send_to_device(const size_t tid, const size_t s_node_id, Event &e, const std::vector< ConnectorModel * > &cm)
Sends a spike event to all targets of the source neuron.
Definition target_table_devices_impl.h:79
void get_synapse_status_to_device(const size_t tid, const size_t source_node_id, const synindex syn_id, Dictionary &dict, const size_t lcid) const
Returns synapse status of connection from neuron to device.
Definition target_table_devices_impl.h:113
void get_synapse_status_from_device(const size_t tid, const size_t ldid, const synindex syn_id, Dictionary &dict, const size_t lcid) const
Returns synapse status of connection from device to neuron.
Definition target_table_devices.h:209
std::vector< std::vector< std::vector< ConnectorBase * > > > target_to_devices_
3d structure storing connections from neurons to devices
Definition target_table_devices.h:54
void resize_to_number_of_neurons()
Resizes vectors according to number of local nodes.
Definition target_table_devices.cpp:80
void get_connections(const size_t requested_source_node_id, const size_t requested_target_node_id, const size_t tid, const synindex synapse_id, const long synapse_label, std::deque< ConnectionID > &conns) const
Returns all connections between neurons and devices.
Definition target_table_devices.cpp:187
void add_connection_from_device(Node &source, Node &target, const size_t tid, const synindex syn_id, const Dictionary &p, const double d, const double w)
Adds a connection from the device source to the neuron target.
Definition target_table_devices_impl.h:57
void initialize()
Initialize data structures.
Definition target_table_devices.cpp:41
std::vector< std::vector< size_t > > sending_devices_node_ids_
3d structure storing node IDs of sending devices (necessary for get_connections)
Definition target_table_devices.h:61
void get_connections_from_devices_(const size_t requested_source_node_id, const size_t requested_target_node_id, const size_t tid, const synindex synapse_id, const long synapse_label, std::deque< ConnectionID > &conns) const
Returns all connections from devices to neurons.
Definition target_table_devices.cpp:156
bool is_device_connected(size_t tid, size_t lcid) const
Checks if the device has any connections in this thread.
Definition target_table_devices.h:247
void resize_to_number_of_synapse_types()
Resizes vectors according to number of available synapse types.
Definition target_table_devices.cpp:92
void send_from_device(const size_t tid, const size_t ldid, Event &e, const std::vector< ConnectorModel * > &cm)
Sends a spike event to all targets of the source device.
Definition target_table_devices.h:230
std::vector< std::vector< std::vector< ConnectorBase * > > > target_from_devices_
3d structure storing connections from devices to neurons
Definition target_table_devices.h:57
void finalize()
Delete data structure.
Definition target_table_devices.cpp:50
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
static const long UNLABELED_CONNECTION
Connections are unlabeled by default.
Definition connection_label.h:38
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115