23#ifndef TARGET_TABLE_DEVICES_IMPL_H
24#define TARGET_TABLE_DEVICES_IMPL_H
40 const size_t source_node_id,
65 const size_t ldid = source.get_local_device_id();
66 assert( ldid != invalid_index );
80 const size_t source_node_id,
82 const std::vector< ConnectorModel* >& cm )
85 for ( std::vector< ConnectorBase* >::iterator it =
target_to_devices_[ tid ][ lid ].begin();
91 ( *it )->send_to_all( tid, cm, e );
98 const size_t source_node_id,
100 const std::vector< ConnectorModel* >& cm )
103 for (
auto& synid : e.get_supported_syn_ids() )
114 const size_t source_node_id,
117 const size_t lcid )
const
128 const size_t source_node_id,
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Definition connector_model.h:69
virtual void add_connection(Node &src, Node &tgt, std::vector< ConnectorBase * > &hetconn, const synindex syn_id, const Dictionary &d, const double delay=NAN, const double weight=NAN)=0
Adds a connection.
Encapsulate information sent between nodes.
Definition event.h:103
ConnectorModel & get_connection_model(synindex syn_id, size_t thread_id)
Return pointer to protoype for given synapse id.
Definition model_manager.h:295
Base class for all NEST network objects.
Definition node.h:99
Base class of secondary events.
Definition secondary_event.h:50
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 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 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
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 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
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
std::vector< std::vector< std::vector< ConnectorBase * > > > target_from_devices_
3d structure storing connections from devices to neurons
Definition target_table_devices.h:57
size_t node_id_to_lid(const size_t node_id) const
Returns thread local index of a given global node.
Definition vp_manager_impl.h:79
ModelManager model_manager
Definition kernel_manager.h:243
VPManager vp_manager
Definition kernel_manager.h:234
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
KernelManager & kernel()
Definition kernel_manager.h:311
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
Declarations for base class Node.