#include <network_base_objects.hpp>
|
| PopulationViewBase (const NetworkBase &network, PopulationIndex pid, NeuronIndex nid0, NeuronIndex nid1) |
|
NetworkBase | network () const |
|
PopulationIndex | pid () const |
|
NeuronIndex | nid_begin () const |
|
NeuronIndex | nid_end () const |
|
NeuronBase | operator[] (NeuronIndex i) |
|
const NeuronBase | operator[] (NeuronIndex i) const |
|
NeuronBase | operator() (NeuronIndex i) |
|
const NeuronBase | operator() (NeuronIndex i) const |
|
size_t | size () |
|
iterator | begin () |
|
const_iterator | begin () const |
|
iterator | end () |
|
const_iterator | end () const |
|
reverse_iterator | rbegin () |
|
const_reverse_iterator | rbegin () const |
|
reverse_iterator | rend () |
|
const_reverse_iterator | rend () const |
|
const_iterator | cbegin () const |
|
const_iterator | cend () const |
|
const_reverse_iterator | crbegin () const |
|
const_reverse_iterator | crend () const |
|
const PopulationViewBase | range (NeuronIndex begin, NeuronIndex end) const |
|
PopulationViewBase | range (NeuronIndex begin, NeuronIndex end) |
|
const PopulationViewBase | operator() (NeuronIndex begin, NeuronIndex end) const |
|
PopulationViewBase | operator() (NeuronIndex begin, NeuronIndex end) |
|
bool | operator== (const Other &o) const |
|
bool | operator!= (const Other &o) const |
|
bool | operator< (const Other &o) const |
|
bool | operator<= (const Other &o) const |
|
bool | operator> (const Other &o) const |
|
bool | operator>= (const Other &o) const |
|
const NeuronType & | type () const |
|
const NeuronParameters | parameters () const |
|
NeuronParameters | parameters () |
|
const NeuronSignals | signals () const |
|
NeuronSignals | signals () |
|
PopulationViewBase & | connect_to (TargetIterator tar_begin, TargetIterator tar_end, std::unique_ptr< Connector > connector, const char *name="") |
|
PopulationViewBase & | connect_to (const Target &tar, std::unique_ptr< Connector > connector, const char *name="") |
|
The PopulationViewBase class represents a subset of neurons in a PopulationView.
Creates a population view as a handle pointing at an already existing population with the given population index and the specified range of neuron indices.
- Parameters
-
network | is the network in which the population is located. |
pid | is the population index of the already existing population in the referenced network. |
nid0 | is the index of the first neuron in the population that can be accessed in this view. |
nid1 | is the index of the last-plus-one neuron in the population that can be accessed in this view. |
Returns an iterator at the first neuron in the population. For neurons, returns an iterator pointing at the neuron itself.
Connects all neurons in this Population, PopulationView or Neuron with a range of neurons indicated by the given iterators.
- Parameters
-
tar_begin | is an iterator pointing at the first neuron in the target population that should be connected. |
tar_end | is an iterator pointing at the last neuron in the target population that should be connected. |
connector | is the object establishing the actual connections. |
- Returns
- a reference at this object for function chaining.
Connects all neurons in this Population, PopulationView or Neuron with the given target, which may be a Population, PopulationView or a single neuron.
- Parameters
-
tar | is the object this object should be connected with. |
connector | is the object establishing the actual connections. |
- Returns
- a reference at this object for function chaining.
Returns an iterator at the last-plus-one neuron in the population.
NetworkBase cypress::PopulationViewBase::network |
( |
| ) |
const |
|
inline |
Returns a handle pointing at the network this population is located in.
- Returns
- a NetworkBase object pointing at the network this neuron is located in.
NeuronIndex cypress::PopulationViewBase::nid_begin |
( |
| ) |
const |
|
inline |
Returns the index of the first neuron belonging to this PopulationView.
NeuronIndex cypress::PopulationViewBase::nid_end |
( |
| ) |
const |
|
inline |
Returns the index of the last-plus-one neuron belonging to this PopulationView.
Returns a constant View object representing a range of neurons relative to this object.
- Parameters
-
begin | is the index of the first neuron in the resulting view, relative to the first neuron in this object. |
end | is the index of the last-plus-one neuron in the resulting view, relative to the first neuron in this object. |
- Returns
- a new view representing only the given range of neurons.
Returns a View object representing a range of neurons relative to this object.
- Parameters
-
begin | is the index of the first neuron in the resulting view, relative to the first neuron in this object. |
end | is the index of the last-plus-one neuron in the resulting view, relative to the first neuron in this object. |
- Returns
- a new view representing only the given range of neurons.
Returns a reference at the i-th neuron in the Population or PopulationView. For neurons, only the index zero is allowed, providing access at the neuron itself.
Returns a const-reference at the i-th neuron. For neurons, only the index zero is allowed, providing access at the neuron itself.
Returns a reference at the i-th neuron in the Population or PopulationView. For neurons, only the index zero is allowed, providing access at the neuron itself.
Returns a const-reference at the i-th neuron. For neurons, only the index zero is allowed, providing access at the neuron itself.
Returns an object which can be used for reading the parameters of the neurons represented by this object. Note that read access may be constrained when the parameters in the underlying neurons do not possess the same parameters.
Returns an object which can be used for setting the parameters of the neurons. Note that read access may be constrained when the parameters in the underlying neurons do not possess the same parameters.
Returns the population index of this population.
- Returns
- the population index of this population.
Returns a constant View object representing a range of neurons relative to this object.
- Parameters
-
begin | is the index of the first neuron in the resulting view, relative to the first neuron in this object. |
end | is the index of the last-plus-one neuron in the resulting view, relative to the first neuron in this object. |
- Returns
- a new view representing only the given range of neurons.
Returns a View object representing a range of neurons relative to this object.
- Parameters
-
begin | is the index of the first neuron in the resulting view, relative to the first neuron in this object. |
end | is the index of the last-plus-one neuron in the resulting view, relative to the first neuron in this object. |
- Returns
- a new view representing only the given range of neurons.
Returns an object which can be used for reading the record flags and the recorded data.
Returns an object which can be used for reading and writing the record flags and the recorded data.
Returns the size of the population or population view. For single neurons the size is always one.
Returns the type of the population. All neurons share the same type.
The documentation for this class was generated from the following file: