#include <coherence/util/TypedCollections.hpp>
Inherits WrapperCollections::AbstractWrapperListIterator.
Public Types | |
typedef spec::Handle | Handle |
TypedListIterator<T> Handle definition. | |
typedef spec::View | View |
TypedListIterator<T> View definition. | |
typedef spec::Holder | Holder |
TypedListIterator<T> Holder definition. | |
typedef T | ValueType |
The type of the handles returned by this iterator, e.g. | |
Public Member Functions | |
virtual ValueType | nextTyped () |
The typed version of the method Iterator::next. | |
virtual ValueType | previousTyped () |
The typed version of the method ListIterator::previous. | |
virtual void | add (ValueType v) |
The typed version of the method ListIterator::add. | |
virtual void | set (ValueType v) |
The typed version of the method ListIterator::set. | |
Protected Member Functions | |
TypedListIterator (ListIterator::Handle hIterDelegate) | |
Create a new TypedListIterator over the given ListIterator. | |
TypedListIterator (const TypedListIterator &that) | |
Copy constructor. |
typedef T ValueType |
The type of the handles returned by this iterator, e.g.
TypedListIterator | ( | ListIterator::Handle | hIterDelegate | ) | [inline, protected] |
Create a new TypedListIterator over the given ListIterator.
hIterDelegate | a general "Object" Iterator to wrap around |
virtual ValueType nextTyped | ( | ) | [inline, virtual] |
The typed version of the method Iterator::next.
Return the next element in the iteration.
coherence::lang::NoSuchElementException | if iteration has no more elements. | |
ClassCastException | if the typed collection is broken by external usage |
virtual ValueType previousTyped | ( | ) | [inline, virtual] |
The typed version of the method ListIterator::previous.
Return the previous element in the iteration.
coherence::lang::NoSuchElementException | if iteration has no previous elements. | |
ClassCastException | if the typed collection is broken by external usage |
virtual void add | ( | ValueType | v | ) | [inline, virtual] |
The typed version of the method ListIterator::add.
Insert the specified element immediately before the element to be returned from the next call to the next() method. A subsequent call to next() will not return the added element, while a call to previous() would return the added element.
v | the element to add |
UnsupportedOperationException | if addition is not supported |
virtual void set | ( | ValueType | v | ) | [inline, virtual] |
The typed version of the method ListIterator::set.
Replace the last element returned by next() or previous() with the specified element.
oh | the element to store |
UnsupportedOperationException | if set is not supported |