private class DoubleIntegerDBIDPairKNNListHeap.Itr extends Object implements DoubleIntegerDBIDListIter, IntegerDBIDArrayIter
Modifier and Type | Field and Description |
---|---|
private int |
pos
Cursor position.
|
Modifier | Constructor and Description |
---|---|
private |
DoubleIntegerDBIDPairKNNListHeap.Itr() |
Modifier and Type | Method and Description |
---|---|
DoubleIntegerDBIDPairKNNListHeap.Itr |
advance()
Moves the iterator forward to the next entry.
|
DoubleIntegerDBIDPairKNNListHeap.Itr |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
double |
doubleValue()
Get the double value
|
int |
getOffset()
Get current iterator offset.
|
DoubleIntegerDBIDPair |
getPair()
Materialize an object pair.
|
int |
internalGetIndex()
Get the internal index.
|
DoubleIntegerDBIDPairKNNListHeap.Itr |
retract()
Moves the iterator backward to the previous entry.
|
DoubleIntegerDBIDPairKNNListHeap.Itr |
seek(int off)
Moves the iterator to the given position
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
private DoubleIntegerDBIDPairKNNListHeap.Itr()
public int internalGetIndex()
DBIDRef
internalGetIndex
in interface DBIDRef
internalGetIndex
in interface IntegerDBIDRef
public boolean valid()
Iter
public DoubleIntegerDBIDPairKNNListHeap.Itr advance()
Iter
advance
in interface DBIDArrayIter
advance
in interface DBIDIter
advance
in interface DoubleDBIDListIter
advance
in interface ArrayIter
advance
in interface Iter
public double doubleValue()
DoubleDBIDListIter
doubleValue
in interface DoubleDBIDListIter
public DoubleIntegerDBIDPair getPair()
DoubleDBIDListIter
#doubleValue()
and exploit that the iterator itself is a
DBIDRef
reference.getPair
in interface DoubleDBIDListIter
public int getOffset()
ArrayIter
public DoubleIntegerDBIDPairKNNListHeap.Itr advance(int count)
ArrayIter
advance
in interface DBIDArrayIter
advance
in interface DoubleDBIDListIter
advance
in interface ArrayIter
count
- offset to move forward or backwardspublic DoubleIntegerDBIDPairKNNListHeap.Itr retract()
ArrayIter
retract
in interface DBIDArrayIter
retract
in interface DoubleDBIDListIter
retract
in interface ArrayIter
public DoubleIntegerDBIDPairKNNListHeap.Itr seek(int off)
ArrayIter
seek
in interface DBIDArrayIter
seek
in interface DoubleDBIDListIter
seek
in interface ArrayIter
off
- Seek offsetCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.