private class IntegerDBIDKNNSubList.Itr extends java.lang.Object implements DoubleIntegerDBIDListIter
Modifier and Type | Field and Description |
---|---|
private DoubleIntegerDBIDListIter |
inneriter
Inner iterator.
|
Modifier | Constructor and Description |
---|---|
private |
Itr() |
Modifier and Type | Method and Description |
---|---|
IntegerDBIDKNNSubList.Itr |
advance()
Moves the iterator forward to the next entry.
|
IntegerDBIDKNNSubList.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.
|
int |
internalGetIndex()
Internal only: Get the internal index.
|
IntegerDBIDKNNSubList.Itr |
retract()
Moves the iterator backward to the previous entry.
|
IntegerDBIDKNNSubList.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 DoubleIntegerDBIDListIter inneriter
public boolean valid()
Iter
public IntegerDBIDKNNSubList.Itr advance()
Iter
advance
in interface DBIDArrayIter
advance
in interface DBIDIter
advance
in interface DoubleDBIDListIter
advance
in interface DoubleIntegerDBIDListIter
advance
in interface ArrayIter
advance
in interface Iter
public double doubleValue()
DoubleDBIDListIter
doubleValue
in interface DoubleDBIDListIter
public int internalGetIndex()
DBIDRef
NOT FOR PUBLIC USE - ELKI Optimization engine only.
internalGetIndex
in interface DBIDRef
internalGetIndex
in interface IntegerDBIDRef
public int getOffset()
ArrayIter
public IntegerDBIDKNNSubList.Itr advance(int count)
ArrayIter
advance
in interface DBIDArrayIter
advance
in interface DoubleDBIDListIter
advance
in interface DoubleIntegerDBIDListIter
advance
in interface ArrayIter
count
- offset to move forward or backwardspublic IntegerDBIDKNNSubList.Itr retract()
ArrayIter
retract
in interface DBIDArrayIter
retract
in interface DoubleDBIDListIter
retract
in interface DoubleIntegerDBIDListIter
retract
in interface ArrayIter
public IntegerDBIDKNNSubList.Itr seek(int off)
ArrayIter
seek
in interface DBIDArrayIter
seek
in interface DoubleDBIDListIter
seek
in interface DoubleIntegerDBIDListIter
seek
in interface ArrayIter
off
- Seek offsetCopyright © 2019 ELKI Development Team. License information.