2005/5/9

     
 

class SingleObjectIterator

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

acdk::util::SingleObjectIterator Class Reference

#include <SingleObjectIterator.h>

Inheritance diagram for acdk::util::SingleObjectIterator:

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

Detailed Description

SingleObjectIterator wrapps a single object with a iterator.

It behaves the same, like a collection with only one value

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.3
Date:
Date
2005/02/05 10:45:06


Public Member Functions

 SingleObjectIterator (IN(acdk::lang::Object) obj)
virtual bool hasNext ()
virtual acdk::lang::Object next ()
virtual acdk::lang::Object element ()
virtual void remove ()
 remove current element from the iterator.


Protected Attributes

acdk::lang::Object _object
bool _endOfCol


Constructor & Destructor Documentation

acdk::util::SingleObjectIterator::SingleObjectIterator IN(acdk::lang::Object obj  )  [inline]
 


Member Function Documentation

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

Implements acdk::util::Iterator.

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

Implements acdk::util::Iterator.

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

Implements acdk::util::Iterator.

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

remove current element from the iterator.

May not support by all Iterator

Implements acdk::util::Iterator.


Member Data Documentation

bool acdk::util::SingleObjectIterator::_endOfCol [protected]
 

acdk::lang::Object acdk::util::SingleObjectIterator::_object [protected]