LTL
2.0.x
|
Inherits ltl::LTLIterator.
Public Types | |
enum | { numIndexIter = 1 } |
enum | { numConvolution = 0 } |
enum | { isVectorizable = 0 } |
Public Member Functions | |
IndexIter (const MArray< T, N > &array) | |
IndexIter (const Shape< N > *s) | |
IndexIter (const IndexIter< T, N > &other) | |
void | reset () |
IndexIter< T, N > & | operator++ () |
IndexIter< T, N > | operator++ (int) |
void | advance () |
void | advance (const int i) |
void | advance (const int i, const int dim) |
void | advanceWithStride1 () |
FixedVector< int, N > | readWithoutStride (const int i) const |
FixedVector< int, N > | readWithStride (const int i) const |
FixedVector< int, N > | readWithStride (const int i, const int dim) const |
FixedVector< int, N > | readAtOffsetDim (const int i, const int dim) const |
FixedVector< int, N > | readAtOffset (const int i) const |
FixedVector< int, N > | readAtOffset (const int i, const int j) const |
FixedVector< int, N > | readAtOffset (const int i, const int j, const int k) const |
int | boundary_l (const int) const |
int | boundary_u (const int) const |
void | advanceDim () |
void | advanceDim (const int cutDim) |
bool | needAdvanceDim () const |
bool | done () const |
const FixedVector< int, N > & | index () const |
int | index (const int dim) const |
const FixedVector< int, N > & | operator* () const |
const FixedVector< int, N > & | operator() () const |
int | operator() (const int dim) const |
void | printRanges () const |
const Shape< N > * | shape () const |
bool | isStorageContiguous (void) const |
bool | isStride1 () const |
bool | isConformable (const Shape< N > &other) const |
Protected Attributes | |
FixedVector< int, N > | first_ |
FixedVector< int, N > | last_ |
FixedVector< int, N > | pos_ |
bool | done_ |
const Shape< N > * | shape_ |
Iterator object holding vector of index values for each position.
This class is also used for implementing ltl::IndexList and ltl::where().
ltl::IndexIter< T, N >::IndexIter | ( | const MArray< T, N > & | array | ) |
ltl::IndexIter< T, N >::IndexIter | ( | const Shape< N > * | s | ) |
|
inline |
void ltl::IndexIter< T, N >::reset | ( | ) |
|
inline |
|
inline |
|
inline |
References ltl::IndexIter< T, N >::pos_.
Referenced by ltl::IndexIter< T, N >::operator++().
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
|
inline |
void ltl::IndexIter< T, N >::advanceDim | ( | ) |
Referenced by ltl::IndexIter< T, N >::operator++().
void ltl::IndexIter< T, N >::advanceDim | ( | const int | cutDim | ) |
|
inline |
References ltl::IndexIter< T, N >::last_, and ltl::IndexIter< T, N >::pos_.
|
inline |
|
inline |
References ltl::IndexIter< T, N >::pos_.
Referenced by ltl::IndexIter< T, N >::operator()(), and ltl::IndexIter< T, N >::operator*().
|
inline |
References ltl::IndexIter< T, N >::pos_.
|
inline |
References ltl::IndexIter< T, N >::index().
|
inline |
References ltl::IndexIter< T, N >::index().
|
inline |
References ltl::IndexIter< T, N >::index().
void ltl::IndexIter< T, N >::printRanges | ( | ) | const |
|
inline |
References ltl::IndexIter< T, N >::shape_.
|
inline |
|
inline |
|
inline |
References ltl::IndexIter< T, N >::shape_.
|
protected |
|
protected |
|
protected |
Referenced by ltl::IndexIter< T, N >::advance(), ltl::IndexIter< T, N >::advanceWithStride1(), ltl::IndexIter< T, N >::done(), ltl::IndexIter< T, N >::index(), ltl::IndexIter< T, N >::needAdvanceDim(), ltl::IndexIter< T, N >::operator++(), ltl::IndexIter< T, N >::readAtOffset(), ltl::IndexIter< T, N >::readAtOffsetDim(), ltl::IndexIter< T, N >::readWithoutStride(), and ltl::IndexIter< T, N >::readWithStride().
|
protected |
Referenced by ltl::IndexIter< T, N >::done().
|
protected |
Referenced by ltl::IndexIter< T, N >::isConformable(), and ltl::IndexIter< T, N >::shape().