private class DoubleIntegerDBIDKNNHeap.UnorderedIter extends java.lang.Object implements DoubleDBIDListIter
Modifier and Type | Field and Description |
---|---|
private DoubleIntegerHeap.UnsortedIter |
it
Iterator of the real heap.
|
private int |
t
Position in ties.
|
Modifier | Constructor and Description |
---|---|
private |
UnorderedIter() |
Modifier and Type | Method and Description |
---|---|
DoubleDBIDListIter |
advance()
Moves the iterator forward to the next entry.
|
DoubleDBIDListIter |
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.
|
int |
internalGetIndex()
Internal only: Get the internal index.
|
DoubleDBIDListIter |
retract()
Moves the iterator backward to the previous entry.
|
DoubleDBIDListIter |
seek(int off)
Moves the iterator to the given position
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
private DoubleIntegerHeap.UnsortedIter it
private int t
public int internalGetIndex()
DBIDRef
NOT FOR PUBLIC USE - ELKI Optimization engine only.
internalGetIndex
in interface DBIDRef
public boolean valid()
Iter
public int getOffset()
ArrayIter
public double doubleValue()
DoubleDBIDListIter
doubleValue
in interface DoubleDBIDListIter
public DoubleDBIDListIter advance()
Iter
advance
in interface DBIDArrayIter
advance
in interface DBIDIter
advance
in interface DoubleDBIDListIter
advance
in interface ArrayIter
advance
in interface Iter
public DoubleDBIDListIter advance(int count)
ArrayIter
advance
in interface DBIDArrayIter
advance
in interface DoubleDBIDListIter
advance
in interface ArrayIter
count
- offset to move forward or backwardspublic DoubleDBIDListIter retract()
ArrayIter
retract
in interface DBIDArrayIter
retract
in interface DoubleDBIDListIter
retract
in interface ArrayIter
public DoubleDBIDListIter seek(int off)
ArrayIter
seek
in interface DBIDArrayIter
seek
in interface DoubleDBIDListIter
seek
in interface ArrayIter
off
- Seek offsetCopyright © 2019 ELKI Development Team. License information.