Package elki.database.ids.integer
Class DoubleIntegerDBIDKNNHeap.UnorderedIter
- java.lang.Object
-
- elki.database.ids.integer.DoubleIntegerDBIDKNNHeap.UnorderedIter
-
- All Implemented Interfaces:
DBIDIter,DBIDRef,DoubleDBIDIter,Iter
- Enclosing class:
- DoubleIntegerDBIDKNNHeap
private class DoubleIntegerDBIDKNNHeap.UnorderedIter extends java.lang.Object implements DoubleDBIDIter
Iterate over all objects in the heap, not ordered.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private DoubleDBIDIteritIterator of the real heap.private inttPosition in ties.
-
Constructor Summary
Constructors Constructor Description UnorderedIter(DoubleDBIDIter it)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleDBIDIteradvance()Moves the iterator forward to the next entry.doubledoubleValue()Get the double valueintinternalGetIndex()Internal only: Get the internal index.booleanvalid()Returns true if the iterator currently points to a valid object.
-
-
-
Field Detail
-
it
private DoubleDBIDIter it
Iterator of the real heap.
-
t
private int t
Position in ties.
-
-
Constructor Detail
-
UnorderedIter
public UnorderedIter(DoubleDBIDIter it)
Constructor.- Parameters:
it- Parent iterator
-
-
Method Detail
-
internalGetIndex
public int internalGetIndex()
Description copied from interface:DBIDRefInternal only: Get the internal index.NOT FOR PUBLIC USE - ELKI Optimization engine only.
- Specified by:
internalGetIndexin interfaceDBIDRef- Returns:
- Internal index
-
valid
public boolean valid()
Description copied from interface:IterReturns true if the iterator currently points to a valid object.
-
doubleValue
public double doubleValue()
Description copied from interface:DoubleDBIDIterGet the double value- Specified by:
doubleValuein interfaceDoubleDBIDIter- Returns:
- double value
-
advance
public DoubleDBIDIter advance()
Description copied from interface:IterMoves the iterator forward to the next entry.
-
-