1 #ifndef CORE_MorseArrayConstIterator_H 2 #define CORE_MorseArrayConstIterator_H 84 mSize=(*(mIndex+1))-(*mIndex);
106 return ((*mIndex)!=mSize);
116 mSize=(*(mIndex+1))-(*mIndex);
125 return (mIndex!=&iter.
index());
133 return (mIndex==&iter.
index());
const tUIndex & size() const
return the number of values at index
Definition: CORE_MorseArrayConstIterator.h:152
const tBoolean & increment() const
return the increment between 2 values
Definition: CORE_MorseArrayConstIterator.h:159
const tUIndex * mIndex
Definition: CORE_MorseArrayConstIterator.h:29
CORE_MorseArrayConstIterator()
create an empty iterator
Definition: CORE_MorseArrayConstIterator.h:40
const tUIndex & index() const
return the current index
Definition: CORE_MorseArrayConstIterator.h:146
virtual ~CORE_MorseArrayConstIterator(void)
destroy
Definition: CORE_MorseArrayConstIterator.h:54
#define tBoolean
Definition: types.h:139
tUIndex mSize
Definition: CORE_MorseArrayConstIterator.h:30
#define null
Definition: types.h:144
This class describes a more array iterator.
Definition: CORE_MorseArrayConstIterator.h:17
CORE_MorseArrayConstIterator< T > & operator++()
increment the iterator: get the values of next element
Definition: CORE_MorseArrayConstIterator.h:110
#define tUIndex
Definition: types.h:126
void init(const T *values, const tUIndex *index, const tBoolean &inc)
init an iterator to pointers
Definition: CORE_MorseArrayConstIterator.h:79
abstract base class for most classes.
Definition: CORE_Object.h:53
tBoolean hasNext() const
return true of element has next element
Definition: CORE_MorseArrayConstIterator.h:105
const T * mValues
Definition: CORE_MorseArrayConstIterator.h:28
const T * values() const
return the current values
Definition: CORE_MorseArrayConstIterator.h:140
tBoolean mIncrement
Definition: CORE_MorseArrayConstIterator.h:31
tBoolean operator==(const CORE_MorseArrayConstIterator< T > &iter) const
test if two iterator are equal
Definition: CORE_MorseArrayConstIterator.h:132
void init(const T *values, const tUIndex *index, const tUIndex &s, const tBoolean &inc)
init an iterator to pointers
Definition: CORE_MorseArrayConstIterator.h:93
tBoolean operator!=(const CORE_MorseArrayConstIterator< T > &iter) const
test if two iterator are not equal
Definition: CORE_MorseArrayConstIterator.h:124