#include <ArrayIterator.h>
Inheritance diagram for acdk::util::ArrayIterator:
Different to standard Collection Iterator implementations this Iterator doesn't check for modifications of the underlying ObjectArray. If you have an ObjectArray, and an ArrayIterator you must not use modifing functions of ObjectArray, otherwise you receive undefined behavior.
Public Member Functions | |
ArrayIterator (IN(RObjectArray) arr) | |
virtual void | add (IN(acdk::lang::Object) o) |
virtual bool | hasNext () |
virtual acdk::lang::Object | next () |
bool | hasPrevious () |
virtual acdk::lang::Object | previous () |
virtual acdk::lang::Object | element () |
virtual void | remove () |
remove current element from the iterator. | |
virtual int | nextIndex () |
virtual int | previousIndex () |
virtual void | set (IN(acdk::lang::Object) o) |
Private Attributes | |
RObjectArray | _array |
ObjectArray::array_iterator | _it |
|
|
|
Implements acdk::util::ListIterator. |
|
Implements acdk::util::ListIterator. |
|
Implements acdk::util::ListIterator. |
|
Implements acdk::util::ListIterator. |
|
Implements acdk::util::ListIterator. |
|
Implements acdk::util::ListIterator. |
|
Implements acdk::util::ListIterator. |
|
Implements acdk::util::ListIterator. |
|
remove current element from the iterator. May not support by all Iterator Implements acdk::util::ListIterator. |
|
Implements acdk::util::ListIterator. |
|
|
|
|