#include <N1DArray.h>
Public Member Functions | |
Iterator (N1DArray< stored_type > *a) | |
Iterator (N1DArray< stored_type > *a, unsigned int b) | |
Iterator & | operator= (const Iterator &other) |
bool | operator== (const Iterator &other) |
bool | operator!= (const Iterator &other) |
Iterator & | operator++ () |
stored_type | operator * () |
Private Attributes | |
unsigned int | at |
N1DArray< stored_type > * | arr |
Definition at line 106 of file N1DArray.h.
N1DArray< stored_type >::Iterator::Iterator | ( | N1DArray< stored_type > * | a | ) | [inline] |
Base constructor.
a | The N1DArray we would like to iterate on |
Definition at line 123 of file N1DArray.h.
References N1DArray< stored_type >::Iterator::arr, and N1DArray< stored_type >::Iterator::at.
N1DArray< stored_type >::Iterator::Iterator | ( | N1DArray< stored_type > * | a, | |
unsigned int | b | |||
) | [inline] |
Base constructor.
a | The N1DArray we would like to iterate on | |
b | The position in the 1D representation we would like to start iterating at |
Definition at line 135 of file N1DArray.h.
References N1DArray< stored_type >::Iterator::arr, and N1DArray< stored_type >::Iterator::at.
Iterator& N1DArray< stored_type >::Iterator::operator= | ( | const Iterator & | other | ) | [inline] |
Assignment operator
Definition at line 141 of file N1DArray.h.
References N1DArray< stored_type >::Iterator::arr, and N1DArray< stored_type >::Iterator::at.
bool N1DArray< stored_type >::Iterator::operator== | ( | const Iterator & | other | ) | [inline] |
Equality operator
Definition at line 148 of file N1DArray.h.
References N1DArray< stored_type >::Iterator::arr, and N1DArray< stored_type >::Iterator::at.
bool N1DArray< stored_type >::Iterator::operator!= | ( | const Iterator & | other | ) | [inline] |
Inequality operator
Definition at line 153 of file N1DArray.h.
References N1DArray< stored_type >::Iterator::arr, and N1DArray< stored_type >::Iterator::at.
Increment operator; basically just increments the at-variable.
Definition at line 158 of file N1DArray.h.
References N1DArray< stored_type >::Iterator::at.
stored_type N1DArray< stored_type >::Iterator::operator * | ( | ) | [inline] |
Dereference operator.
Definition at line 169 of file N1DArray.h.
References N1DArray< stored_type >::Iterator::arr, and N1DArray< stored_type >::Iterator::at.
unsigned int N1DArray< stored_type >::Iterator::at [private] |
Position of the iterator in terms of 1D array index
Definition at line 110 of file N1DArray.h.
Referenced by N1DArray< stored_type >::Iterator::Iterator(), N1DArray< stored_type >::Iterator::operator *(), N1DArray< stored_type >::Iterator::operator!=(), N1DArray< stored_type >::Iterator::operator++(), N1DArray< stored_type >::Iterator::operator=(), and N1DArray< stored_type >::Iterator::operator==().
N1DArray< stored_type >* N1DArray< stored_type >::Iterator::arr [private] |
Pointer to the N1DArray we are iterating on
Definition at line 113 of file N1DArray.h.
Referenced by N1DArray< stored_type >::Iterator::Iterator(), N1DArray< stored_type >::Iterator::operator *(), N1DArray< stored_type >::Iterator::operator!=(), N1DArray< stored_type >::Iterator::operator=(), and N1DArray< stored_type >::Iterator::operator==().