38 typedef std::pair<index,index>
Range;
106 pair_iter_(iter), n_(n)
113 return (other.
pair_iter_ != pair_iter_) || (other.
n_ != n_);
119 return pair_iter_->first + n_;
126 if (n_ > pair_iter_->second-pair_iter_->first) {
size_t index
Unsigned long type for enumerations.
Definition: nest.h:109
Definition: multirange.h:41
RangeVector ranges_
Definition: multirange.h:64
std::vector< Range > RangeVector
Definition: multirange.h:39
Multirange()
Definition: multirange.h:69
index size_
Definition: multirange.h:65
iterator end() const
Definition: multirange.h:148
index operator[](index n) const
Definition: multirange.cpp:26
void push_back(index x)
Definition: multirange.h:75
iterator(RangeVector::const_iterator iter, index n)
Definition: multirange.h:105
index size() const
Definition: multirange.h:93
iterator & operator++()
Definition: multirange.h:123
RangeVector::const_iterator pair_iter_
Definition: multirange.h:50
const Name other("other")
Node type.
Definition: nest_names.h:216
bool empty() const
Definition: multirange.h:99
index operator*() const
Definition: multirange.h:117
const Name x("x")
current scaling factor of the synaptic weight [0...1] (Tsodyks2_connection)
Definition: nest_names.h:356
std::pair< index, index > Range
Definition: multirange.h:38
index n_
Definition: multirange.h:51
const Name n("n")
Number of synaptic release sites (int >=0) (Tsodyks2_connection)
Definition: nest_names.h:202
Default types used by the NEST kernel.
Class for sequences of ranges acting like a compressed vector.
Definition: multirange.h:35
iterator begin() const
Definition: multirange.h:142
bool operator!=(const iterator &other) const
Definition: multirange.h:111
void clear()
Definition: multirange.h:86