nsol
0.4.1
Nsol - Neuroscience Objects Library
|
A class to represent connections between neurons. TODO: extend long description. More...
#include <Circuit.h>
Public Types | |
enum | TDataType { ALL = 0, PRESYNAPTICCONNECTIONS, POSTSYNAPTICCONNECTIONS } |
Possible types of data to get. | |
Public Member Functions | |
Constructors and destructors | |
Circuit (void) | |
Default constructor. | |
virtual | ~Circuit (void) |
Default destructor. | |
Connections related methods | |
void | addSynapse (SynapsePtr synapse_) |
Method to add a connection into the cirtuit. More... | |
void | addSynapses (const std::vector< SynapsePtr > &synapses) |
void | addSynapses (const std::vector< MorphologySynapsePtr > &synapses) |
void | clear (void) |
Method to clear all the connections of all the circuit. | |
unsigned int | numberOfSynapses (void) const |
Method to get the total number of connections of the circuit. More... | |
Afferent & Efferent synapses related methods | |
const std::vector< SynapsePtr > & | synapses (void) const |
Method to get all the synapses from the circuit. More... | |
std::set< SynapsePtr > | synapses (TDataType dataType_) const |
Method to get all the synapses from the circuit. More... | |
std::set< SynapsePtr > | synapses (uint32_t neuronGID_, TDataType dataType_) const |
Method to get all the sinapses of the neuron into the circuit. More... | |
std::set< SynapsePtr > | synapses (const std::set< uint32_t > &gidsNeurons_, TDataType dataType_) const |
Method to get all the sinapses from a subset of neurons. More... | |
Protected Attributes | |
std::vector< SynapsePtr > | _synapses |
Container with all the connections between neurons. | |
SynapsesMap | _preSynapticConnections |
Container with all the efferents connections into the circuit. | |
SynapsesMap | _postSynapticConnections |
Container with all the afferents connections into the circuit. | |
A class to represent connections between neurons. TODO: extend long description.
void nsol::Circuit::addSynapse | ( | SynapsePtr | synapse_ | ) |
Method to add a connection into the cirtuit.
synapse_ | synapse to add to this circuit |
unsigned int nsol::Circuit::numberOfSynapses | ( | void | ) | const |
Method to get the total number of connections of the circuit.
const std::vector< SynapsePtr >& nsol::Circuit::synapses | ( | void | ) | const |
Method to get all the synapses from the circuit.
std::set< SynapsePtr > nsol::Circuit::synapses | ( | TDataType | dataType_ | ) | const |
Method to get all the synapses from the circuit.
dataType_ | Data type |
std::set< SynapsePtr > nsol::Circuit::synapses | ( | uint32_t | neuronGID_, |
TDataType | dataType_ | ||
) | const |
Method to get all the sinapses of the neuron into the circuit.
neuronGID_ | neuron id |
dataType_ | Data type |
std::set< SynapsePtr > nsol::Circuit::synapses | ( | const std::set< uint32_t > & | gidsNeurons_, |
TDataType | dataType_ | ||
) | const |
Method to get all the sinapses from a subset of neurons.
gidsNeurons_ | subset of ids neurons |
dataType_ | Data type |