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

#include <TVarArray.h>

Inheritance diagram for istd::TVarArray< Element >::Iterator:
istd::CVarIndex

Public Types

typedef CVarIndex BaseClass
 
- Public Types inherited from istd::CVarIndex
typedef int IndexType
 
typedef QVector< int >::iterator 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::CVarIndex
 CVarIndex ()
 Default constructor without member initialization. More...
 
 CVarIndex (int size, int value=0)
 Constructor initializing all member to specified value. More...
 
 CVarIndex (const CVarIndex &index)
 Copy constructor. More...
 
template<int Dimensions>
 CVarIndex (const TIndex< Dimensions > index)
 Convert fixed-size index to this object. More...
 
bool IsValid () const
 Check if tihs 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, int value=0)
 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 CVarIndex &boundaries) const
 Check if index is inside boundaries. More...
 
bool Increase (const CVarIndex &boundaries)
 Increase this index inside the boundaries. More...
 
bool Decrease (const CVarIndex &boundaries)
 Decrese 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 CVarIndex &boundaries) const
 Get index of iteration from zero to current index inside some boundaries. More...
 
int GetMinDimensionsCount () const
 Get minimal number of dimensions needed to to represent this index. 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
 Get access to single index components. More...
 
int & operator[] (int index)
 Get access to single index components. More...
 
bool operator== (const CVarIndex &index) const
 
bool operator!= (const CVarIndex &index) const
 
bool operator< (const CVarIndex &index) const
 
bool operator> (const CVarIndex &index) const
 
bool operator<= (const CVarIndex &index) const
 
bool operator>= (const CVarIndex &index) const
 
CVarIndexoperator= (const CVarIndex &index)
 
CVarIndexoperator+= (const CVarIndex &index)
 
CVarIndexoperator-= (const CVarIndex &index)
 

Protected Member Functions

 Iterator (TVarArray *arrayPtr)
 

Friends

class TVarArray< Element >
 

Detailed Description

template<class Element>
class istd::TVarArray< Element >::Iterator

Definition at line 27 of file TVarArray.h.

Member Typedef Documentation

template<class Element >
typedef CVarIndex istd::TVarArray< Element >::Iterator::BaseClass

Definition at line 30 of file TVarArray.h.

Constructor & Destructor Documentation

template<class Element >
istd::TVarArray< Element >::Iterator::Iterator ( const Iterator iterator)
template<class Element >
istd::TVarArray< Element >::Iterator::Iterator ( TVarArray arrayPtr)
protected

Member Function Documentation

template<class Element >
bool istd::TVarArray< Element >::Iterator::operator!= ( const Iterator iterator) const

Definition at line 484 of file TVarArray.h.

template<class Element >
Element & istd::TVarArray< Element >::Iterator::operator* ( )

Definition at line 386 of file TVarArray.h.

References NULL.

template<class Element >
const Element& istd::TVarArray< Element >::Iterator::operator* ( ) const
template<class Element >
TVarArray< Element >::Iterator & istd::TVarArray< Element >::Iterator::operator++ ( )

Definition at line 416 of file TVarArray.h.

References NULL.

template<class Element >
TVarArray< Element >::Iterator istd::TVarArray< Element >::Iterator::operator++ ( int  )

Definition at line 427 of file TVarArray.h.

References NULL.

template<class Element >
TVarArray< Element >::Iterator & istd::TVarArray< Element >::Iterator::operator-- ( )

Definition at line 440 of file TVarArray.h.

References NULL.

template<class Element >
TVarArray< Element >::Iterator istd::TVarArray< Element >::Iterator::operator-- ( int  )

Definition at line 451 of file TVarArray.h.

References NULL.

template<class Element >
Element * istd::TVarArray< Element >::Iterator::operator-> ( )

Definition at line 406 of file TVarArray.h.

References NULL.

template<class Element >
const Element* istd::TVarArray< Element >::Iterator::operator-> ( ) const
template<class Element >
TVarArray< Element >::Iterator & istd::TVarArray< Element >::Iterator::operator= ( const Iterator iterator)

Definition at line 464 of file TVarArray.h.

template<class Element >
bool istd::TVarArray< Element >::Iterator::operator== ( const Iterator iterator) const

Definition at line 473 of file TVarArray.h.

References NULL.

Friends And Related Function Documentation

template<class Element >
friend class TVarArray< Element >
friend

Definition at line 51 of file TVarArray.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy