|
FlexELA
|
An iterator for all data (excluding padding) in Helper<T>. More...
#include <fields.h>
Public Member Functions | |
| Iterator (Helper< T > array, int i, int j, int k) | |
| Construct a new Iterator object at (i,j,k) | |
| T & | operator* () const |
| Get reference. | |
| T * | operator-> () |
| Get pointer. | |
| const T * | operator-> () const |
| Get pointer to const. | |
| bool | operator== (const Iterator &other) const |
| Comparison. | |
| bool | operator!= (const Iterator &other) const |
Protected Attributes | |
| T * | ptr |
| int | index [2] |
| int | n [2] |
| int | jump [2] |
An iterator for all data (excluding padding) in Helper<T>.
Forward iteration order goes from small indices (i,j,k) to large indicies; however the order (i->j->k or k->j->i) is optimized to the ordering (set at compile time) of the underlying data.