NEST
2.6.0,not_revisioned_source_dir@0
|
Iterator iterating over the nodes inside a Mask. More...
#include <grid_layer.h>
Public Member Functions | |
masked_iterator (const GridLayer< D > &layer) | |
Constructor for an invalid iterator. More... | |
masked_iterator (const GridLayer< D > &layer, const Mask< D > &mask, const Position< D > &anchor, const Selector &filter) | |
Initialize an iterator to point to the first node inside the mask. More... | |
value_type | operator* () |
masked_iterator & | operator++ () |
Move the iterator to the next node within the mask. More... | |
masked_iterator | operator++ (int) |
Postfix increment operator. More... | |
bool | operator== (const masked_iterator &other) const |
Iterators are equal if they point to the same node in the same layer. More... | |
bool | operator!= (const masked_iterator &other) const |
Protected Attributes | |
const GridLayer< D > & | layer_ |
int_t | layer_size_ |
const Mask< D > * | mask_ |
Position< D > | anchor_ |
Selector | filter_ |
MultiIndex< D > | node_ |
int_t | depth_ |
Iterator iterating over the nodes inside a Mask.
|
inline |
Constructor for an invalid iterator.
nest::GridLayer< D >::masked_iterator::masked_iterator | ( | const GridLayer< D > & | layer, |
const Mask< D > & | mask, | ||
const Position< D > & | anchor, | ||
const Selector & | filter | ||
) |
Initialize an iterator to point to the first node inside the mask.
References nest::names::anchor, nest::GridLayer< D >::masked_iterator::anchor_, nest::Selector::depth, nest::GridLayer< D >::masked_iterator::depth_, nest::AbstractLayer::depth_, nest::GridLayer< D >::dims_, nest::Layer< D >::extent_, nest::GridLayer< D >::masked_iterator::filter_, nest::Mask< D >::get_bbox(), nest::Subnet::global_size(), nest::GridLayer< D >::masked_iterator::layer_, nest::GridLayer< D >::masked_iterator::layer_size_, nest::Box< D >::lower_left, nest::Layer< D >::lower_left_, nest::GridLayer< D >::masked_iterator::mask_, nest::names::max, nest::names::min, nest::Selector::model, nest::GridLayer< D >::masked_iterator::node_, nest::Layer< D >::periodic_, nest::Selector::select_depth(), nest::Selector::select_model(), and nest::Box< D >::upper_right.
|
inline |
|
inline |
References assert(), and nest::AbstractLayer::depth_.
GridLayer< D >::masked_iterator & nest::GridLayer< D >::masked_iterator::operator++ | ( | ) |
Move the iterator to the next node within the mask.
May cause the iterator to become invalid if there are no more nodes.
References nest::AbstractLayer::depth_.
|
inline |
Postfix increment operator.
|
inline |
Iterators are equal if they point to the same node in the same layer.
References nest::GridLayer< D >::masked_iterator::depth_, nest::GridLayer< D >::masked_iterator::layer_, and nest::GridLayer< D >::masked_iterator::node_.
|
protected |
Referenced by nest::GridLayer< D >::masked_iterator::masked_iterator().
|
protected |
|
protected |
Referenced by nest::GridLayer< D >::masked_iterator::masked_iterator().
|
protected |
|
protected |
Referenced by nest::GridLayer< D >::masked_iterator::masked_iterator().
|
protected |
Referenced by nest::GridLayer< D >::masked_iterator::masked_iterator().
|
protected |