NPL
Neurological Programs and Libraries
|
Flat iterator for NDArray. No information is kept about the current ND index. Just goes through all data. This casts the output to the type specified using T. More...
#include <iterators.h>
Public Member Functions | |
FlatIter () | |
Default constructor. Note, this will segfault if you don't use setArray to set the target NDArray/Image. More... | |
FlatIter (std::shared_ptr< NDArray > in) | |
void | setArray (ptr< NDArray > in) |
FlatIter & | operator++ () |
Prefix increment operator. More... | |
FlatIter & | operator-- () |
Prefix decrement operator. More... | |
T | operator* () const |
Dereference operator. More... | |
T | get () const |
Dereference operator. More... | |
void | set (T v) const |
Dereference operator. More... | |
void | goBegin () |
Go to beginning of iteration. More... | |
void | goEnd () |
Go to end of iteration. More... | |
bool | isEnd () const |
Are we one past the last element? More... | |
bool | eof () const |
Are we one past the last element? More... | |
bool | isBegin () const |
Are we at the first element. More... | |
bool | operator== (const FlatIter &other) const |
Whether the position and parent are the same as another. More... | |
bool | operator!= (const FlatIter &other) const |
Whether the position and parent are different from another. More... | |
bool | operator< (const FlatIter &other) const |
If the parents are different then false, if they are the same, returns whether this iterator is before the other. More... | |
bool | operator> (const FlatIter &other) const |
If the parents are different then false, if they are the same, returns whether this iterator is after the other. More... | |
bool | operator<= (const FlatIter &other) const |
If the parents are different then false, if they are the same, returns whether this iterator is the same or before the other. More... | |
bool | operator>= (const FlatIter &other) const |
If the parents are different then false, if they are the same, returns whether this iterator is the same or after the other. More... | |
Flat iterator for NDArray. No information is kept about the current ND index. Just goes through all data. This casts the output to the type specified using T.
T |
Definition at line 61 of file iterators.h.
|
inline |
Default constructor. Note, this will segfault if you don't use setArray to set the target NDArray/Image.
Definition at line 68 of file iterators.h.
|
inline |
Definition at line 70 of file iterators.h.
|
inline |
Are we one past the last element?
Definition at line 232 of file iterators.h.
|
inline |
|
inline |
Go to beginning of iteration.
Definition at line 217 of file iterators.h.
|
inline |
Go to end of iteration.
Definition at line 222 of file iterators.h.
|
inline |
Are we at the first element.
Definition at line 237 of file iterators.h.
|
inline |
Are we one past the last element?
Definition at line 227 of file iterators.h.
|
inline |
Whether the position and parent are different from another.
other |
Definition at line 258 of file iterators.h.
|
inline |
|
inline |
|
inline |
|
inline |
If the parents are different then false, if they are the same, returns whether this iterator is before the other.
other |
Definition at line 271 of file iterators.h.
|
inline |
If the parents are different then false, if they are the same, returns whether this iterator is the same or before the other.
other |
Definition at line 297 of file iterators.h.
|
inline |
Whether the position and parent are the same as another.
other |
Definition at line 246 of file iterators.h.
|
inline |
If the parents are different then false, if they are the same, returns whether this iterator is after the other.
other |
Definition at line 284 of file iterators.h.
|
inline |
If the parents are different then false, if they are the same, returns whether this iterator is the same or after the other.
other |
Definition at line 310 of file iterators.h.
|
inline |
|
inline |
Definition at line 75 of file iterators.h.