- class AbstractIterator(T) : GuardIterator!(T) ¶#
-
A convenient base class for implementations of GuardIterator
Doug Lea
@version 0.93
For an introduction to this package see Overview .
- View!(T) view [private] ¶#
-
The collection being enumerated
- uint mutation [private] ¶#
-
The version number of the collection we got upon construction
- uint togo [private] ¶#
-
The number of elements we think we have left.
Initialized to view.size() upon construction
- bool corrupted() [public, final] ¶#
-
Implements tango.util.collection.impl.Collection.CollectionIterator.corrupted.
Claim corruption if version numbers differ
tango.util.collection.impl.Collection.CollectionIterator.corrupted
- uint remaining() [public, final] ¶#
-
Implements tango.util.collection.impl.Collection.CollectionIterator.numberOfRemaingingElements.
tango.util.collection.impl.Collection.CollectionIterator.remaining
- bool more() [public, final] ¶#
-
Implements tango.util.collection.model.Iterator.more.
Return true if remaining > 0 and not corrupted
tango.util.collection.model.Iterator.more
- void decRemaining() [protected, final] ¶#
-
Subclass utility.
Tries to decrement togo, raising exceptions
if it is already zero or if corrupted()
Always call as the first line of get.