#include <connector.hpp>
The ConnectionDescriptor represents a user-defined connection between two neuron populations.
cypress::ConnectionDescriptor::ConnectionDescriptor |
( |
uint32_t |
pid_src, |
|
|
uint32_t |
nid_src0, |
|
|
uint32_t |
nid_src1, |
|
|
uint32_t |
pid_tar, |
|
|
uint32_t |
nid_tar0, |
|
|
uint32_t |
nid_tar1, |
|
|
std::shared_ptr< Connector > |
connector = nullptr , |
|
|
const char * |
label = "" |
|
) |
| |
|
inline |
void cypress::ConnectionDescriptor::connect |
( |
std::vector< LocalConnection > & |
tar | ) |
const |
|
inline |
Tells the Connector to actually create the neuron-to-neuron connections between certain neurons.
- Parameters
-
tar | is the target vector to which the connections should be written. |
Connector& cypress::ConnectionDescriptor::connector |
( |
| ) |
const |
|
inline |
Returns a const reference at the underlying connector instance – the class which actually fills the connection table.
const std::string& cypress::ConnectionDescriptor::label |
( |
| ) |
const |
|
inline |
Return custom connection label
- Returns
- label of the connection
NeuronIndex cypress::ConnectionDescriptor::nid_src0 |
( |
| ) |
const |
|
inline |
Index of the first neuron in the source population involved in the connection.
NeuronIndex cypress::ConnectionDescriptor::nid_src1 |
( |
| ) |
const |
|
inline |
Index of the last-plus-one neuron in the target population involved in the connection.
NeuronIndex cypress::ConnectionDescriptor::nid_tar0 |
( |
| ) |
const |
|
inline |
Index of the first neuron in the target population involved in the connection.
NeuronIndex cypress::ConnectionDescriptor::nid_tar1 |
( |
| ) |
const |
|
inline |
Index of the last-plus-one neuron in the target population involved in the connection.
NeuronIndex cypress::ConnectionDescriptor::nsrc |
( |
| ) |
const |
|
inline |
Returns the number of neurons in the source population.
NeuronIndex cypress::ConnectionDescriptor::ntar |
( |
| ) |
const |
|
inline |
Returns the number of neurons in the target population.
Used to sort the connections by their source id.
Checks whether two Connection instances are equal, apart from the connector.
The source population id.
The target population id.
size_t cypress::ConnectionDescriptor::size |
( |
| ) |
|
|
inline |
void cypress::ConnectionDescriptor::update_connector |
( |
std::shared_ptr< Connector > |
connector | ) |
|
|
inline |
Change the underlying connector
bool cypress::ConnectionDescriptor::valid |
( |
| ) |
const |
|
inline |
Returns true if the connector is valid.
The documentation for this class was generated from the following file: