1 #ifndef CORE_MorseArrayIterator_H 2 #define CORE_MorseArrayIterator_H 89 mSize=(*(mIndex+1))-(*mIndex);
104 mSize=(*(mIndex+1))-(*mIndex);
113 return (mIndex!=&iter.
index());
121 return (mIndex==&iter.
index());
154 (*(mIndex+1))=(*mIndex)+n;
void init(T *values, tUIndex *index, const tBoolean &inc)
init the iterator to pointers
Definition: CORE_MorseArrayIterator.h:81
tBoolean operator!=(const CORE_MorseArrayIterator< T > &iter) const
test if two iterator are not equal
Definition: CORE_MorseArrayIterator.h:112
tBoolean mIncrement
Definition: CORE_MorseArrayIterator.h:34
tUIndex & index() const
return the current index
Definition: CORE_MorseArrayIterator.h:135
virtual ~CORE_MorseArrayIterator(void)
destroy
Definition: CORE_MorseArrayIterator.h:57
#define tBoolean
Definition: types.h:139
CORE_MorseArrayIterator()
create an iterator to empty
Definition: CORE_MorseArrayIterator.h:43
CORE_MorseArrayIterator< T > & operator++()
increment the iterator: get the values of next element
Definition: CORE_MorseArrayIterator.h:98
#define null
Definition: types.h:144
void setSize(const tUIndex &n)
set the size of the element
Definition: CORE_MorseArrayIterator.h:153
tUIndex mSize
Definition: CORE_MorseArrayIterator.h:31
T * values() const
return the current values
Definition: CORE_MorseArrayIterator.h:129
tUIndex * mIndex
Definition: CORE_MorseArrayIterator.h:29
const tUIndex & size() const
return the number of values at index
Definition: CORE_MorseArrayIterator.h:141
#define tUIndex
Definition: types.h:126
T * mValues
Definition: CORE_MorseArrayIterator.h:27
abstract base class for most classes.
Definition: CORE_Object.h:53
tBoolean operator==(const CORE_MorseArrayIterator< T > &iter) const
test if two iterator are equal
Definition: CORE_MorseArrayIterator.h:120
const tBoolean & increment() const
return the increment between 2 values
Definition: CORE_MorseArrayIterator.h:147
This class describes a more array iterator.
Definition: CORE_MorseArrayIterator.h:15