23#ifndef CONNECTION_LABEL_H
24#define CONNECTION_LABEL_H
52template <
typename ConnectionT >
77template <
typename ConnectionT >
84template <
typename ConnectionT >
88 ConnectionT::get_status( d );
96template <
typename ConnectionT >
109 throw BadProperty(
"Connection label must not be negative." );
112 ConnectionT::set_status( d, cm );
115template <
typename ConnectionT >
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Exception to be thrown if a status parameter is incomplete or inconsistent.
Definition exceptions.h:680
The class ConnectionLabel enables synapse model to be labeled by a positive integer.
Definition connection_label.h:54
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties of this connection from the values given in dictionary.
Definition connection_label.h:98
long label_
Definition connection_label.h:74
long get_label() const
Definition connection_label.h:117
ConnectionLabel()
Definition connection_label.h:78
void get_status(Dictionary &d) const
Get all properties of this connection and put them into a dictionary.
Definition connection_label.h:86
Definition connector_model.h:69
const std::string synapse_label("synapse_label")
const std::string size_of("sizeof")
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