
protected class GenericDistanceDBIDList.Itr extends Object implements DistanceDBIDListIter<D>
| Modifier and Type | Field and Description | 
|---|---|
| (package private) int | posIterator position. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | GenericDistanceDBIDList.Itr() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | advance()Moves the iterator forward to the next entry. | 
| void | advance(int count)Moves the iterator forward or backward by the given offset. | 
| D | getDistance()Get the distance | 
| DistanceDBIDPair<D> | getDistancePair()Get an object pair. | 
| int | getOffset()Get current iterator offset. | 
| int | internalGetIndex()Get the internal index. | 
| void | retract()Moves the iterator backward to the previous entry. | 
| void | seek(int off)Moves the iterator to the given position | 
| String | toString() | 
| boolean | valid()Returns true if the iterator currently points to a valid object. | 
public int internalGetIndex()
DBIDRefinternalGetIndex in interface DBIDRefpublic boolean valid()
Iterpublic void advance()
Iterpublic D getDistance()
DistanceDBIDListItergetDistance in interface DistanceDBIDListIter<D extends Distance<D>>public DistanceDBIDPair<D> getDistancePair()
DistanceDBIDListItergetDistancePair in interface DistanceDBIDListIter<D extends Distance<D>>public int getOffset()
ArrayIterpublic void advance(int count)
ArrayIterpublic void retract()
ArrayIter