NPL
Neurological Programs and Libraries
|
Flat iterator iterator for NDArray. No information is kept about the current index. Just goes through all data. This casts the output to the type specified using T. More...
#include <iterators.h>
Public Member Functions | |
FlatConstIter () | |
Default constructor. Note, this will segfault if you don't use setArray to set the target NDArray/Image. More... | |
FlatConstIter (std::shared_ptr< const NDArray > in) | |
void | setArray (ptr< const NDArray > in) |
FlatConstIter & | operator++ () |
Prefix increment operator. More... | |
FlatConstIter & | operator-- () |
Prefix decrement operator. More... | |
T | operator* () const |
Dereference operator. More... | |
T | get () 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 FlatConstIter &other) const |
Whether the position and parent are the same as another. More... | |
bool | operator!= (const FlatConstIter &other) const |
Whether the position and parent are different from another. More... | |
bool | operator< (const FlatConstIter &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 FlatConstIter &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 FlatConstIter &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 FlatConstIter &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 iterator for NDArray. No information is kept about the current index. Just goes through all data. This casts the output to the type specified using T.
T |
Definition at line 345 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 352 of file iterators.h.
|
inline |
Definition at line 354 of file iterators.h.
|
inline |
Are we one past the last element?
Definition at line 486 of file iterators.h.
|
inline |
|
inline |
Go to beginning of iteration.
Definition at line 471 of file iterators.h.
|
inline |
Go to end of iteration.
Definition at line 476 of file iterators.h.
|
inline |
Are we at the first element.
Definition at line 491 of file iterators.h.
|
inline |
Are we one past the last element?
Definition at line 481 of file iterators.h.
|
inline |
Whether the position and parent are different from another.
other |
Definition at line 512 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 525 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 551 of file iterators.h.
|
inline |
Whether the position and parent are the same as another.
other |
Definition at line 500 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 538 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 564 of file iterators.h.
|
inline |
Definition at line 359 of file iterators.h.