Cypress  1.0
C++ Spiking Neural Network Simulation Framework
Public Member Functions | List of all members
cypress::ConnectableMixin< Impl, Accessor > Class Template Reference

#include <network_base.hpp>

Public Member Functions

template<typename TargetIterator >
Impl & connect_to (TargetIterator tar_begin, TargetIterator tar_end, std::unique_ptr< Connector > connector, const char *name="")
 
template<typename Target >
Impl & connect_to (const Target &tar, std::unique_ptr< Connector > connector, const char *name="")
 

Detailed Description

template<typename Impl, typename Accessor>
class cypress::ConnectableMixin< Impl, Accessor >

Mixin which allows to connect one iterable element with another.

Member Function Documentation

template<typename Impl, typename Accessor>
template<typename TargetIterator >
Impl& cypress::ConnectableMixin< Impl, Accessor >::connect_to ( TargetIterator  tar_begin,
TargetIterator  tar_end,
std::unique_ptr< Connector connector,
const char *  name = "" 
)
inline

Connects all neurons in this Population, PopulationView or Neuron with a range of neurons indicated by the given iterators.

Parameters
tar_beginis an iterator pointing at the first neuron in the target population that should be connected.
tar_endis an iterator pointing at the last neuron in the target population that should be connected.
connectoris the object establishing the actual connections.
Returns
a reference at this object for function chaining.
template<typename Impl, typename Accessor>
template<typename Target >
Impl& cypress::ConnectableMixin< Impl, Accessor >::connect_to ( const Target &  tar,
std::unique_ptr< Connector connector,
const char *  name = "" 
)
inline

Connects all neurons in this Population, PopulationView or Neuron with the given target, which may be a Population, PopulationView or a single neuron.

Parameters
taris the object this object should be connected with.
connectoris the object establishing the actual connections.
Returns
a reference at this object for function chaining.

The documentation for this class was generated from the following files: