Oracle Coherence for C++ API
Release 3.7.1.0
E22845-01
#include <coherence/util/WrapperCollections.hpp>
Inherits WrapperCollections::AbstractWrapperIterator, and ListMuterator.
Inherited by TypedCollections::TypedListIterator.
ListIterator implementation which delegates all calls to another ListIterator.
Public Types |
|||||||
| typedef spec::Handle | Handle | ||||||
| AbstractWrapperListIterator Handle definition. | |||||||
| typedef spec::View | View | ||||||
| AbstractWrapperListIterator View definition. | |||||||
| typedef spec::Holder | Holder | ||||||
| AbstractWrapperListIterator Holder definition. | |||||||
Public Member Functions |
|||||||
| virtual bool | hasPrevious () const | ||||||
Returns true if this list iterator has more elements when traversing the list in the reverse direction.
|
|||||||
| virtual Object::Holder | previous () | ||||||
Returns the previous element in the list.
|
|||||||
| virtual size32_t | nextIndex () const | ||||||
Return the index of the next element to be returned from a call to next().
|
|||||||
| virtual size32_t | previousIndex () const | ||||||
Return the index of the element to be returned from a call to previous().
|
|||||||
| virtual void | remove () | ||||||
Remove from the collection associated with this iterator, the last element returned from the iterator.
|
|||||||
| virtual void | add (Object::Holder oh) | ||||||
| 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.
|
|||||||
| virtual void | set (Object::Holder oh) | ||||||
Replace the last element returned by next() or previous() with the specified element.
|
|||||||
| virtual bool | hasNext () const | ||||||
Determine if the iteration has another element.
|
|||||||
| virtual Object::Holder | next () | ||||||
Return the next element in the iterated series.
|
|||||||
Protected Member Functions |
|||||||
| AbstractWrapperListIterator (ListIterator::Handle hIterDelegate) | |||||||
| Create an AbstractWrapperListIterator which delegates to the specified ListIterator. | |||||||
| AbstractWrapperListIterator (const AbstractWrapperListIterator &that) | |||||||
| Copy constructor. | |||||||
| virtual ListIterator::Handle |
getListDelegate () | ||||||
| Return a handle to the delegate. | |||||||
| virtual ListIterator::View |
getListDelegate () const | ||||||
| Return a view to the delegate. | |||||||
| AbstractWrapperListIterator | ( | ListIterator::Handle | hIterDelegate | ) | [protected] |
Create an AbstractWrapperListIterator which delegates to the specified ListIterator.
| hIterDelegate | the Iterator to delegate to |
| virtual ListIterator::Handle getListDelegate | ( | ) | [protected, virtual] |
Return a handle to the delegate.
| UnsupportedOperationException | if the delegate is a view |
| virtual ListIterator::View getListDelegate | ( | ) | const [protected, virtual] |
Return a view to the delegate.
The documentation for this class was generated from the following file: