STK++ 0.9.13
|
#include <STK_Array1D_InnerIterator.h>
Public Types | |
typedef InnerIteratorBase< Array1D< Type_, Size_ >, Array1D< Type_, Size_ >::InnerOperator > | Base |
typedef hidden::Traits< Array1D< Type_, Size_ > >::Type | Type |
typedef hidden::Traits< Array1D< Type_, Size_ > >::TypeConst | TypeConst |
typedef hidden::RemoveConst< Type >::Type & | reference |
typedef hidden::RemoveConst< Type >::Type * | pointer |
![]() | |
enum | |
typedef hidden::Traits< Array1D< Type_, Size_ > >::Type | Type |
typedef hidden::Traits< Array1D< Type_, Size_ > >::TypeConst | TypeConst |
typedef hidden::RemoveConst< Type >::Type & | reference |
typedef hidden::RemoveConst< Type >::Type * | pointer |
Public Member Functions | |
InnerOperator (Array1D< Type_, Size_ > &array) | |
default constructor. | |
InnerOperator (InnerOperator const &it) | |
copy constructor. | |
operator bool () const | |
TypeConst | valueImpl () const |
reference | valueRefImpl () const |
InnerOperator const & | nextImpl () const |
go to next position | |
InnerOperator const & | prevImpl () const |
go to previous position | |
![]() | |
int | col () const |
get current column of the iterator | |
int | row () const |
get current row of the iterator | |
Array1D< Type_, Size_ >::InnerOperator const & | next () const |
go to next position | |
Array1D< Type_, Size_ >::InnerOperator const & | prev () const |
go to previous position | |
Array1D< Type_, Size_ >::InnerOperator const & | operator++ () const |
go to next position | |
Array1D< Type_, Size_ >::InnerOperator const & | operator++ (int) const |
go to next position | |
Array1D< Type_, Size_ >::InnerOperator const & | operator-- () const |
go to previous position | |
Array1D< Type_, Size_ >::InnerOperator const & | operator-- (int) const |
go to previous position | |
TypeConst | value () const |
get current value of the iterator | |
reference | valueRef () const |
get current value of the iterator | |
reference | operator* () const |
get a reference on the current element (the one at position pos_) | |
pointer | operator-> () const |
get address of the current element (the one at position pos_) | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
InnerIteratorBase (Array1D< Type_, Size_ > *p_array) | |
default constructor. | |
InnerIteratorBase (InnerIteratorBase const &it) | |
copy constructor. | |
~InnerIteratorBase () | |
destructor | |
![]() | |
IRecursiveTemplate () | |
constructor. | |
~IRecursiveTemplate () | |
destructor. | |
![]() | |
Array1D< Type_, Size_ > *const | p_array_ |
pointer on instance | |
int | row_ |
current row position | |
int | col_ |
current column position | |
Definition at line 44 of file STK_Array1D_InnerIterator.h.
typedef InnerIteratorBase< Array1D<Type_, Size_>, Array1D<Type_, Size_>::InnerOperator > STK::Array1D< Type_, Size_ >::InnerOperator::Base |
Definition at line 47 of file STK_Array1D_InnerIterator.h.
typedef hidden::RemoveConst<Type>::Type* STK::Array1D< Type_, Size_ >::InnerOperator::pointer |
Definition at line 63 of file STK_Array1D_InnerIterator.h.
typedef hidden::RemoveConst<Type>::Type& STK::Array1D< Type_, Size_ >::InnerOperator::reference |
Definition at line 62 of file STK_Array1D_InnerIterator.h.
typedef hidden::Traits<Array1D<Type_,Size_>>::Type STK::Array1D< Type_, Size_ >::InnerOperator::Type |
Definition at line 59 of file STK_Array1D_InnerIterator.h.
typedef hidden::Traits<Array1D<Type_,Size_>>::TypeConst STK::Array1D< Type_, Size_ >::InnerOperator::TypeConst |
Definition at line 60 of file STK_Array1D_InnerIterator.h.
|
inline |
default constructor.
array | instance to iterate |
Definition at line 72 of file STK_Array1D_InnerIterator.h.
|
inline |
copy constructor.
it | iterator to copy |
Definition at line 76 of file STK_Array1D_InnerIterator.h.
|
inline |
go to next position
Definition at line 85 of file STK_Array1D_InnerIterator.h.
|
inline |
true
if iteration are terminated, false
otherwise Definition at line 79 of file STK_Array1D_InnerIterator.h.
|
inline |
|
inline |
Definition at line 81 of file STK_Array1D_InnerIterator.h.
|
inline |
Definition at line 83 of file STK_Array1D_InnerIterator.h.