TIterator - The type of iterator that implements this interface.public interface IBaseIter<TIterator> extends IEquatable<TIterator>, IDisposable
| Modifier and Type | Method and Description |
|---|---|
void |
Advance(int offset)
Adds an offset to an iterator.
|
void |
Advance(long offset)
Adds an offset to an iterator.
|
IteratorCategory |
Category()
Gets the iterator category.
|
TIterator |
Copy()
Creates and returns a copy of the current instance.
|
long |
Distance(TIterator other)
Determines the number of increments between
this instance and a specified iterator.
|
void |
Increment()
Increments the iterator.
|
void |
ResetBegin()
Sets the iterator to its initial position,
which is before the first element in the container.
|
void |
ResetEnd()
Sets the iterator to its final position,
which is after the last element in the container.
|
EqualsDisposeIteratorCategory Category()
TIterator Copy()
void ResetBegin()
Remarks: For reverse iterators, the initial position is after the last element in the container.
void ResetEnd()
Remarks: For reverse iterators, the final position is before the first element in the container.
void Increment()
Remarks: Past-the-end iterators are not incrementable.
void Advance(int offset)
offset - The number of positions the iterator is to be offset.void Advance(long offset)
offset - The number of positions the iterator is to be offset.long Distance(TIterator other)
other - An input iterator addressing the position
one past the final element in the range [this, other).Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.