Homogeneous connector, contains synapses of one particular type (syn_id_). More...
#include <connector_base.h>
Public Member Functions | |
| Connector (const synindex syn_id) | |
| ~Connector () override | |
| synindex | get_syn_id () const override |
| Return syn_id_ of the synapse type of this Connector (size_t in list of synapse prototypes). | |
| size_t | size () const override |
| Return the number of connections in this Connector. | |
| void | get_synapse_status (const size_t tid, const size_t lcid, Dictionary &dict) const override |
| Write status of the connection at position lcid to the dictionary dict. | |
| void | set_synapse_status (const size_t lcid, const Dictionary &dict, ConnectorModel &cm) override |
| Set status of the connection at position lcid according to the dictionary dict. | |
| void | push_back (const ConnectionT &c) |
| void | push_back (ConnectionT &&c) |
| void | get_connection (const size_t source_node_id, const size_t target_node_id, const size_t tid, const size_t lcid, const long synapse_label, std::deque< ConnectionID > &conns) const override |
| Add ConnectionID with given source_node_id and lcid to conns. | |
| void | get_connection_with_specified_targets (const size_t source_node_id, const std::vector< size_t > &target_neuron_node_ids, const size_t tid, const size_t lcid, const long synapse_label, std::deque< ConnectionID > &conns) const override |
| Add ConnectionID with given source_node_id and lcid to conns. | |
| void | get_all_connections (const size_t source_node_id, const size_t target_node_id, const size_t tid, const long synapse_label, std::deque< ConnectionID > &conns) const override |
| Add ConnectionIDs with given source_node_id to conns, looping over all lcids. | |
| void | get_source_lcids (const size_t tid, const size_t target_node_id, std::vector< size_t > &source_lcids) const override |
| For a given target_node_id add lcids of all connections with matching node ID of target to source_lcids. | |
| void | get_target_node_ids (const size_t tid, const size_t start_lcid, const std::string &post_synaptic_element, std::vector< size_t > &target_node_ids) const override |
| For a given start_lcid add node IDs of all targets that belong to the same source to target_node_ids. | |
| size_t | get_target_node_id (const size_t tid, const unsigned int lcid) const override |
| For a given lcid return the node ID of the target of the connection. | |
| void | send_to_all (const size_t tid, const std::vector< ConnectorModel * > &cm, Event &e) override |
| Send the event e to all connections of this Connector. | |
| size_t | send (const size_t tid, const size_t lcid, const std::vector< ConnectorModel * > &cm, Event &e) override |
| Send the event e to the connection at position lcid. | |
| void | send_weight_event (const size_t tid, const unsigned int lcid, Event &e, const CommonSynapseProperties &cp) override |
| void | trigger_update_weight (const long vt_node_id, const size_t tid, const std::vector< spikecounter > &dopa_spikes, const double t_trig, const std::vector< ConnectorModel * > &cm) override |
| Update weights of dopamine modulated STDP connections. | |
| void | sort_connections (BlockVector< Source > &sources) override |
| Sort connections according to source node IDs. | |
| void | set_source_has_more_targets (const size_t lcid, const bool has_more_targets) override |
| Set a flag in the connection indicating whether the following connection belongs to the same source. | |
| size_t | find_first_target (const size_t tid, const size_t start_lcid, const size_t target_node_id) const override |
| Return lcid of the first connection after start_lcid (inclusive) where the node_id of the target matches target_node_id. | |
| size_t | find_enabled_connection (const size_t tid, const size_t syn_id, const size_t source_node_id, const size_t target_node_id, const SourceTable &source_table) const override |
| Return lcid of first connection matching source and target node id and that is not disabled. | |
| void | disable_connection (const size_t lcid) override |
| Disable the transfer of events through the connection at position lcid. | |
| void | remove_disabled_connections (const size_t first_disabled_index) override |
| Remove disabled connections from the connector. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| ~Connector () | |
| ~Connector () | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| ~Connector () | |
| ~Connector () | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| ~Connector () | |
| ~Connector () | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| ~Connector () | |
| ~Connector () | |
Public Member Functions inherited from nest::ConnectorBase | |
| virtual | ~ConnectorBase () |
Private Attributes | |
| BlockVector< ConnectionT > | C_ |
| const synindex | syn_id_ |
Homogeneous connector, contains synapses of one particular type (syn_id_).
|
inlineexplicit |
|
inlineoverride |
References nest::Connector< ConnectionT >::C_, and BlockVector< value_type_ >::clear().
| nest::Connector< eprop_synapse< TargetIdentifierIndex > >::~Connector | ( | ) |
| nest::Connector< eprop_synapse< TargetIdentifierIndex > >::~Connector | ( | ) |
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
|
inlineoverridevirtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_.
|
inlineoverridevirtual |
Return lcid of first connection matching source and target node id and that is not disabled.
Intended for use with unsorted (uncompressed) connections.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, nest::SourceTable::get_node_id(), and BlockVector< value_type_ >::size().
|
inlineoverridevirtual |
Return lcid of the first connection after start_lcid (inclusive) where the node_id of the target matches target_node_id.
If there are no matches, the function returns invalid_index.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_.
|
inlineoverridevirtual |
Add ConnectionIDs with given source_node_id to conns, looping over all lcids.
If target_node_id is given, only add connection if target_node_id matches the node ID of the target of the connection.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, nest::Connector< ConnectionT >::get_connection(), and BlockVector< value_type_ >::size().
|
inlineoverridevirtual |
Add ConnectionID with given source_node_id and lcid to conns.
If target_node_id is given, only add connection if target_node_id matches the node_id of the target of the connection.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, BlockVector< value_type_ >::push_back(), nest::Connector< ConnectionT >::syn_id_, and nest::UNLABELED_CONNECTION.
Referenced by nest::Connector< ConnectionT >::get_all_connections().
|
inlineoverridevirtual |
Add ConnectionID with given source_node_id and lcid to conns.
If target_neuron_node_ids is given, only add connection if target_neuron_node_ids contains the node ID of the target of the connection.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, BlockVector< value_type_ >::push_back(), nest::Connector< ConnectionT >::syn_id_, and nest::UNLABELED_CONNECTION.
|
inlineoverridevirtual |
For a given target_node_id add lcids of all connections with matching node ID of target to source_lcids.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, BlockVector< value_type_ >::push_back(), and BlockVector< value_type_ >::size().
|
inlineoverridevirtual |
Return syn_id_ of the synapse type of this Connector (size_t in list of synapse prototypes).
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::syn_id_.
|
inlineoverridevirtual |
Write status of the connection at position lcid to the dictionary dict.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, BlockVector< value_type_ >::size(), and nest::names::target().
|
inlineoverridevirtual |
For a given lcid return the node ID of the target of the connection.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_.
|
inlineoverridevirtual |
For a given start_lcid add node IDs of all targets that belong to the same source to target_node_ids.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_.
|
inline |
References nest::Connector< ConnectionT >::C_, and BlockVector< value_type_ >::push_back().
|
inline |
References nest::Connector< ConnectionT >::C_, and BlockVector< value_type_ >::push_back().
Referenced by nest::GenericConnectorModel< ConnectionT >::add_connection_().
|
inlineoverridevirtual |
Remove disabled connections from the connector.
Implements nest::ConnectorBase.
References BlockVector< value_type_ >::begin(), nest::Connector< ConnectionT >::C_, BlockVector< value_type_ >::end(), and BlockVector< value_type_ >::erase().
|
inlineoverridevirtual |
Send the event e to the connection at position lcid.
Return bool indicating whether the following connection belongs to the same source.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, nest::Connector< ConnectionT >::send_weight_event(), BlockVector< value_type_ >::size(), and nest::Connector< ConnectionT >::syn_id_.
|
inlineoverridevirtual |
Send the event e to all connections of this Connector.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, BlockVector< value_type_ >::size(), and nest::Connector< ConnectionT >::syn_id_.
|
overridevirtual |
Implements nest::ConnectorBase.
References nest::CommonSynapseProperties::get_weight_recorder(), nest::kernel(), nest::Event::set_delay_steps(), nest::Event::set_port(), nest::Event::set_receiver(), nest::WeightRecorderEvent::set_receiver_node_id(), nest::Event::set_rport(), nest::Event::set_sender_node_id(), nest::Event::set_stamp(), and nest::Event::set_weight().
Referenced by nest::Connector< ConnectionT >::send().
|
inlineoverridevirtual |
Set a flag in the connection indicating whether the following connection belongs to the same source.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_.
|
inlineoverridevirtual |
Set status of the connection at position lcid according to the dictionary dict.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, and BlockVector< value_type_ >::size().
|
inlineoverridevirtual |
Return the number of connections in this Connector.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, and BlockVector< value_type_ >::size().
|
inlineoverridevirtual |
Sort connections according to source node IDs.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, and nest::sort().
|
inlineoverridevirtual |
Update weights of dopamine modulated STDP connections.
Implements nest::ConnectorBase.
References nest::Connector< ConnectionT >::C_, BlockVector< value_type_ >::size(), and nest::Connector< ConnectionT >::syn_id_.
|
private |
Referenced by nest::Connector< ConnectionT >::disable_connection(), nest::Connector< ConnectionT >::find_enabled_connection(), nest::Connector< ConnectionT >::find_first_target(), nest::Connector< ConnectionT >::get_all_connections(), nest::Connector< ConnectionT >::get_connection(), nest::Connector< ConnectionT >::get_connection_with_specified_targets(), nest::Connector< ConnectionT >::get_source_lcids(), nest::Connector< ConnectionT >::get_synapse_status(), nest::Connector< ConnectionT >::get_target_node_id(), nest::Connector< ConnectionT >::get_target_node_ids(), nest::Connector< ConnectionT >::push_back(), nest::Connector< ConnectionT >::push_back(), nest::Connector< ConnectionT >::remove_disabled_connections(), nest::Connector< ConnectionT >::send(), nest::Connector< ConnectionT >::send_to_all(), nest::Connector< ConnectionT >::set_source_has_more_targets(), nest::Connector< ConnectionT >::set_synapse_status(), nest::Connector< ConnectionT >::size(), nest::Connector< ConnectionT >::sort_connections(), nest::Connector< ConnectionT >::trigger_update_weight(), and nest::Connector< ConnectionT >::~Connector().
|
private |
Referenced by nest::Connector< ConnectionT >::get_connection(), nest::Connector< ConnectionT >::get_connection_with_specified_targets(), nest::Connector< ConnectionT >::get_syn_id(), nest::Connector< ConnectionT >::send(), nest::Connector< ConnectionT >::send_to_all(), and nest::Connector< ConnectionT >::trigger_update_weight().