Jive reference manual
|
#include <jem/base/array/Iterator.h>
Public Types | |
enum | EndTag { END_TAG } |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef idx_t | difference_type |
typedef T | value_type |
typedef T & | reference |
typedef T * | pointer |
typedef ArrayIterator | Self |
typedef Tuple< idx_t, N > | Index |
typedef Tuple< idx_t, N > | Shape |
Public Member Functions | |
ArrayIterator () | |
ArrayIterator (T *data, const Shape &shape, const Shape &stride) | |
ArrayIterator (T *data, const Shape &shape, const Shape &stride, EndTag tag) | |
ArrayIterator (const Self &rhs) | |
Self & | operator++ () |
Self | operator++ (int) |
Self & | operator-- () |
Self | operator-- (int) |
reference | operator* () const |
pointer | operator-> () const |
bool | operator== (const Self &rhs) const |
bool | operator!= (const Self &rhs) const |
Static Public Attributes | |
static const int | LAST_DIM = N - 1 |
Related Functions | |
(Note that these are not member functions.) | |
template<class T > | |
idx_t | distance (const ArrayIterator< T, 1 > &first, const ArrayIterator< T, 1 > &last) |
returns the number of elements stored in between two array iterators. More... | |
typedef std::bidirectional_iterator_tag jem::ArrayIterator< T, N >::iterator_category |
typedef idx_t jem::ArrayIterator< T, N >::difference_type |
typedef T jem::ArrayIterator< T, N >::value_type |
typedef T& jem::ArrayIterator< T, N >::reference |
typedef T* jem::ArrayIterator< T, N >::pointer |
typedef ArrayIterator jem::ArrayIterator< T, N >::Self |
typedef Tuple<idx_t,N> jem::ArrayIterator< T, N >::Index |
typedef Tuple<idx_t,N> jem::ArrayIterator< T, N >::Shape |
enum jem::ArrayIterator::EndTag |
jem::ArrayIterator< T, N >::ArrayIterator | ( | ) |
jem::ArrayIterator< T, N >::ArrayIterator | ( | T * | data, |
const Shape & | shape, | ||
const Shape & | stride | ||
) |
jem::ArrayIterator< T, N >::ArrayIterator | ( | T * | data, |
const Shape & | shape, | ||
const Shape & | stride, | ||
EndTag | tag | ||
) |
jem::ArrayIterator< T, N >::ArrayIterator | ( | const Self & | rhs | ) |
Self& jem::ArrayIterator< T, N >::operator++ | ( | ) |
Self jem::ArrayIterator< T, N >::operator++ | ( | int | ) |
Self& jem::ArrayIterator< T, N >::operator-- | ( | ) |
Self jem::ArrayIterator< T, N >::operator-- | ( | int | ) |
reference jem::ArrayIterator< T, N >::operator* | ( | ) | const |
pointer jem::ArrayIterator< T, N >::operator-> | ( | ) | const |
bool jem::ArrayIterator< T, N >::operator== | ( | const Self & | rhs | ) | const |
bool jem::ArrayIterator< T, N >::operator!= | ( | const Self & | rhs | ) | const |
|
related |
Returns the the number of elements stored in between two array iterators. Both iterators should be associated with the same Array.
first | - array iterator referred to the first element |
last | - array iterator referred to the last element |
|
static |