Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
istd::TArray< Element, Dimensions >::Iterator Class Reference

#include <TArray.h>

Inheritance diagram for istd::TArray< Element, Dimensions >::Iterator:
istd::TIndex< Dimensions >

Public Types

typedef TIndex< Dimensions > BaseClass
 
- Public Types inherited from istd::TIndex< Dimensions >
enum  { DIMENSIONS = Dimensions }
 
typedef int IndexType
 
typedef int * Iterator
 

Public Member Functions

 Iterator (const Iterator &iterator)
 
Element & operator* ()
 
const Element & operator* () const
 
Element * operator-> ()
 
const Element * operator-> () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
Iteratoroperator-- ()
 
Iterator operator-- (int)
 
Iteratoroperator= (const Iterator &iterator)
 
bool operator== (const Iterator &iterator) const
 
bool operator!= (const Iterator &iterator) const
 
- Public Member Functions inherited from istd::TIndex< Dimensions >
 TIndex ()
 Default constructor with initialization of member to 0. More...
 
 TIndex (int value)
 Constructor initializing all member to specified value. More...
 
 TIndex (const TIndex &index)
 Copy constructor. More...
 
bool IsValid () const
 Check if this index is valid. More...
 
bool IsZero () const
 Check if this index point at zero element. More...
 
bool IsSizeEmpty () const
 Check if this index interpreted as size is empty. More...
 
void Reset ()
 Reset this object. More...
 
void Clear ()
 Set all components to 0. More...
 
bool IsDimensionsCountFixed () const
 Check, if number dimensions is fixed. More...
 
int GetDimensionsCount () const
 Get number of dimensions of this index. More...
 
bool SetDimensionsCount (int count) const
 Set number of dimensions of this index. More...
 
int GetAt (int index) const
 Get element stored at specified index. More...
 
void SetAt (int index, int value)
 Set element at specified index. More...
 
void SetAllTo (int value)
 Set all components to specified value. More...
 
bool IncreaseAt (int index)
 Increase single component at specified position. More...
 
bool DecreaseAt (int index)
 Decrease single component at specified position. More...
 
bool IsInside (const TIndex &boundaries) const
 Check if index is inside boundaries. More...
 
bool Increase (const TIndex &boundaries)
 Increase this index inside the boundaries. More...
 
bool Decrease (const TIndex &boundaries)
 Decrease this index inside the boundaries. More...
 
int GetProductVolume () const
 Get total number of elements if this index is treated as size. More...
 
int GetIterationIndex (const TIndex &boundaries) const
 Get index of iteration from zero to current index inside some boundaries. More...
 
Iterator Begin () const
 Get begin value of element access iterator. More...
 
Iterator End () const
 Get end value of element access iterator. More...
 
int operator[] (int index) const
 
int & operator[] (int index)
 
bool operator== (const TIndex &index) const
 
bool operator!= (const TIndex &index) const
 
TIndex operator+ (const TIndex &index) const
 
TIndexoperator+= (const TIndex &index)
 
TIndex operator- (const TIndex &index) const
 
TIndexoperator-= (const TIndex &index)
 

Protected Member Functions

 Iterator (TArray *arrayPtr)
 

Friends

class TArray< Element, Dimensions >
 

Additional Inherited Members

- Static Public Member Functions inherited from istd::TIndex< Dimensions >
static const TIndex< Dimensions > & GetZero ()
 Get global instance of zero index. More...
 
static const TIndex< Dimensions > & GetInvalid ()
 Get global instance of invalid index. More...
 

Detailed Description

template<class Element, int Dimensions>
class istd::TArray< Element, Dimensions >::Iterator

Definition at line 30 of file TArray.h.

Member Typedef Documentation

template<class Element, int Dimensions>
typedef TIndex<Dimensions> istd::TArray< Element, Dimensions >::Iterator::BaseClass

Definition at line 33 of file TArray.h.

Constructor & Destructor Documentation

template<class Element, int Dimensions>
istd::TArray< Element, Dimensions >::Iterator::Iterator ( const Iterator iterator)
template<class Element, int Dimensions>
istd::TArray< Element, Dimensions >::Iterator::Iterator ( TArray arrayPtr)
protected

Member Function Documentation

template<class Element, int Dimensions>
bool istd::TArray< Element, Dimensions >::Iterator::operator!= ( const Iterator iterator) const

Definition at line 550 of file TArray.h.

References istd::TArray< Element, Dimensions >::operator==().

template<class Element, int Dimensions>
Element & istd::TArray< Element, Dimensions >::Iterator::operator* ( )

Definition at line 452 of file TArray.h.

References NULL.

template<class Element, int Dimensions>
const Element& istd::TArray< Element, Dimensions >::Iterator::operator* ( ) const
template<class Element, int Dimensions>
TArray< Element, Dimensions >::Iterator & istd::TArray< Element, Dimensions >::Iterator::operator++ ( )

Definition at line 482 of file TArray.h.

References NULL.

template<class Element, int Dimensions>
TArray< Element, Dimensions >::Iterator istd::TArray< Element, Dimensions >::Iterator::operator++ ( int  )

Definition at line 493 of file TArray.h.

References NULL.

template<class Element, int Dimensions>
TArray< Element, Dimensions >::Iterator & istd::TArray< Element, Dimensions >::Iterator::operator-- ( )

Definition at line 506 of file TArray.h.

References NULL.

template<class Element, int Dimensions>
TArray< Element, Dimensions >::Iterator istd::TArray< Element, Dimensions >::Iterator::operator-- ( int  )

Definition at line 517 of file TArray.h.

References NULL.

template<class Element, int Dimensions>
Element * istd::TArray< Element, Dimensions >::Iterator::operator-> ( )

Definition at line 472 of file TArray.h.

References NULL.

template<class Element, int Dimensions>
const Element* istd::TArray< Element, Dimensions >::Iterator::operator-> ( ) const
template<class Element, int Dimensions>
TArray< Element, Dimensions >::Iterator & istd::TArray< Element, Dimensions >::Iterator::operator= ( const Iterator iterator)

Definition at line 530 of file TArray.h.

template<class Element, int Dimensions>
bool istd::TArray< Element, Dimensions >::Iterator::operator== ( const Iterator iterator) const

Definition at line 539 of file TArray.h.

References NULL.

Friends And Related Function Documentation

template<class Element, int Dimensions>
friend class TArray< Element, Dimensions >
friend

Definition at line 54 of file TArray.h.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy