2005/5/9

     
 

class ArrayIterator

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::util::ArrayIterator Class Reference

#include <ArrayIterator.h>

Inheritance diagram for acdk::util::ArrayIterator:

acdk::lang::Object acdk::util::ListIterator acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

An Iterator for standard ObjectArrays.

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.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.8
Date:
Date
2005/03/03 09:41:25


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


Constructor & Destructor Documentation

acdk::util::ArrayIterator::ArrayIterator IN(RObjectArray arr  )  [inline]
 


Member Function Documentation

virtual void acdk::util::ArrayIterator::add IN(acdk::lang::Object o  )  [inline, virtual]
 

Implements acdk::util::ListIterator.

virtual acdk::lang::Object acdk::util::ArrayIterator::element  )  [inline, virtual]
 

Implements acdk::util::ListIterator.

virtual bool acdk::util::ArrayIterator::hasNext  )  [inline, virtual]
 

Implements acdk::util::ListIterator.

bool acdk::util::ArrayIterator::hasPrevious  )  [inline, virtual]
 

Implements acdk::util::ListIterator.

virtual acdk::lang::Object acdk::util::ArrayIterator::next  )  [inline, virtual]
 

Implements acdk::util::ListIterator.

virtual int acdk::util::ArrayIterator::nextIndex  )  [inline, virtual]
 

Implements acdk::util::ListIterator.

virtual acdk::lang::Object acdk::util::ArrayIterator::previous  )  [inline, virtual]
 

Implements acdk::util::ListIterator.

virtual int acdk::util::ArrayIterator::previousIndex  )  [inline, virtual]
 

Implements acdk::util::ListIterator.

virtual void acdk::util::ArrayIterator::remove  )  [inline, virtual]
 

remove current element from the iterator.

May not support by all Iterator

Implements acdk::util::ListIterator.

virtual void acdk::util::ArrayIterator::set IN(acdk::lang::Object o  )  [inline, virtual]
 

Implements acdk::util::ListIterator.


Member Data Documentation

RObjectArray acdk::util::ArrayIterator::_array [private]
 

ObjectArray::array_iterator acdk::util::ArrayIterator::_it [private]