STK++ 0.9.13
|
IteratorBase is a base class for all iterators on dense arrays/matrix/vector/expressions. More...
#include <STK_DenseIteratorBase.h>
Public Types | |
typedef hidden::IteratorTraits< Derived >::Index | Index |
typedef hidden::IteratorTraits< Derived >::iterator_category | iterator_category |
typedef hidden::IteratorTraits< Derived >::value_type | value_type |
typedef hidden::IteratorTraits< Derived >::reference | reference |
typedef hidden::IteratorTraits< Derived >::pointer | pointer |
typedef hidden::IteratorTraits< Derived >::difference_type | difference_type |
Public Member Functions | |
Index | pos () const |
Derived & | operator++ () |
next position | |
Derived & | operator++ (int junk) |
next position | |
Derived & | operator-- () |
previous position | |
Derived & | operator-- (int) |
previous position | |
Derived & | operator+= (Index n) |
add n positions to current position | |
Derived & | operator-= (Index n) |
Subtract n positions to current position. | |
![]() | |
Derived & | asDerived () |
static cast : return a reference of this with a cast to the derived class. | |
Derived const & | asDerived () const |
static cast : return a const reference of this with a cast to the derived class. | |
Derived * | asPtrDerived () |
static cast : return a ptr on a Derived of this with a cast to the derived class. | |
Derived const * | asPtrDerived () const |
static cast : return a ptr on a constant Derived of this with a cast to the derived class. | |
Derived * | clone () const |
create a leaf using the copy constructor of the Derived class. | |
Derived * | clone (bool isRef) const |
create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not. | |
Protected Member Functions | |
DenseIteratorBase () | |
default constructor | |
DenseIteratorBase (Index pos) | |
constructor with specified position | |
DenseIteratorBase (DenseIteratorBase const &it) | |
copy constructor. | |
~DenseIteratorBase () | |
destructor | |
![]() | |
IRecursiveTemplate () | |
constructor. | |
~IRecursiveTemplate () | |
destructor. | |
Protected Attributes | |
Index | pos_ |
Current position. | |
Friends | |
DenseIteratorBase | operator+ (DenseIteratorBase const &it, int n) |
add n positions to current position | |
DenseIteratorBase | operator+ (int n, DenseIteratorBase const &it) |
Subtract n positions to current position. | |
DenseIteratorBase | operator- (DenseIteratorBase const &it, int n) |
Subtract n positions to current position. | |
DenseIteratorBase | operator- (int n, DenseIteratorBase const &it) |
bool | operator< (DenseIteratorBase const &lhs, DenseIteratorBase const &rhs) |
comparing two iterators (only position is compared !) | |
bool | operator> (DenseIteratorBase const &lhs, DenseIteratorBase const &rhs) |
comparing two iterators (only position is compared !) | |
bool | operator<= (DenseIteratorBase const &lhs, DenseIteratorBase const &rhs) |
comparing two iterators (only position is compared !) | |
bool | operator>= (DenseIteratorBase const &lhs, DenseIteratorBase const &rhs) |
comparing two iterators (only position is compared !) | |
void | swap (DenseIteratorBase &lhs, DenseIteratorBase &rhs) |
swap two iterators (only position is swaped) | |
difference_type | operator- (DenseIteratorBase it1, DenseIteratorBase it2) |
difference of two positions | |
IteratorBase is a base class for all iterators on dense arrays/matrix/vector/expressions.
Derived | the derived class |
Definition at line 78 of file STK_DenseIteratorBase.h.
typedef hidden::IteratorTraits<Derived>::difference_type STK::DenseIteratorBase< Derived >::difference_type |
Definition at line 86 of file STK_DenseIteratorBase.h.
typedef hidden::IteratorTraits<Derived>::Index STK::DenseIteratorBase< Derived >::Index |
Definition at line 80 of file STK_DenseIteratorBase.h.
typedef hidden::IteratorTraits<Derived>::iterator_category STK::DenseIteratorBase< Derived >::iterator_category |
Definition at line 82 of file STK_DenseIteratorBase.h.
typedef hidden::IteratorTraits<Derived>::pointer STK::DenseIteratorBase< Derived >::pointer |
Definition at line 85 of file STK_DenseIteratorBase.h.
typedef hidden::IteratorTraits<Derived>::reference STK::DenseIteratorBase< Derived >::reference |
Definition at line 84 of file STK_DenseIteratorBase.h.
typedef hidden::IteratorTraits<Derived>::value_type STK::DenseIteratorBase< Derived >::value_type |
Definition at line 83 of file STK_DenseIteratorBase.h.
|
inlineprotected |
default constructor
Definition at line 90 of file STK_DenseIteratorBase.h.
|
inlineprotected |
constructor with specified position
pos | position of the iterator on the array |
Definition at line 94 of file STK_DenseIteratorBase.h.
|
inlineprotected |
copy constructor.
it | iterator to copy |
Definition at line 98 of file STK_DenseIteratorBase.h.
|
inlineprotected |
|
inline |
next position
Definition at line 108 of file STK_DenseIteratorBase.h.
References STK::IRecursiveTemplate< Derived >::asDerived(), and STK::DenseIteratorBase< Derived >::pos_.
|
inline |
next position
Definition at line 110 of file STK_DenseIteratorBase.h.
References STK::IRecursiveTemplate< Derived >::asDerived(), and STK::DenseIteratorBase< Derived >::pos_.
|
inline |
add n positions to current position
Definition at line 116 of file STK_DenseIteratorBase.h.
References STK::IRecursiveTemplate< Derived >::asDerived(), and STK::DenseIteratorBase< Derived >::pos_.
|
inline |
previous position
Definition at line 112 of file STK_DenseIteratorBase.h.
References STK::IRecursiveTemplate< Derived >::asDerived(), and STK::DenseIteratorBase< Derived >::pos_.
|
inline |
previous position
Definition at line 114 of file STK_DenseIteratorBase.h.
References STK::IRecursiveTemplate< Derived >::asDerived(), and STK::DenseIteratorBase< Derived >::pos_.
|
inline |
Subtract n positions to current position.
Definition at line 118 of file STK_DenseIteratorBase.h.
References STK::IRecursiveTemplate< Derived >::asDerived(), and STK::DenseIteratorBase< Derived >::pos_.
|
inline |
Definition at line 104 of file STK_DenseIteratorBase.h.
References STK::DenseIteratorBase< Derived >::pos_.
|
friend |
add n positions to current position
add n positions to current position
Definition at line 121 of file STK_DenseIteratorBase.h.
|
friend |
|
friend |
|
friend |
difference of two positions
Definition at line 151 of file STK_DenseIteratorBase.h.
|
friend |
Definition at line 130 of file STK_DenseIteratorBase.h.
|
friend |
comparing two iterators (only position is compared !)
Definition at line 134 of file STK_DenseIteratorBase.h.
|
friend |
comparing two iterators (only position is compared !)
Definition at line 140 of file STK_DenseIteratorBase.h.
|
friend |
comparing two iterators (only position is compared !)
Definition at line 137 of file STK_DenseIteratorBase.h.
|
friend |
comparing two iterators (only position is compared !)
Definition at line 143 of file STK_DenseIteratorBase.h.
|
friend |
swap two iterators (only position is swaped)
Definition at line 148 of file STK_DenseIteratorBase.h.
|
protected |
Current position.
Definition at line 157 of file STK_DenseIteratorBase.h.
Referenced by STK::ConstDenseRandomIterator< Array >::operator!=(), STK::DenseIteratorBase< Derived >::operator++(), STK::DenseIteratorBase< Derived >::operator++(), STK::DenseIteratorBase< Derived >::operator+=(), STK::DenseIteratorBase< Derived >::operator--(), STK::DenseIteratorBase< Derived >::operator--(), STK::DenseIteratorBase< Derived >::operator-=(), STK::ConstDenseRandomIterator< Array >::operator==(), and STK::DenseIteratorBase< Derived >::pos().