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 DoubleDBIDIter
it
Iterator of the real heap.private int
t
Position in ties.
-
Constructor Summary
Constructors Constructor Description UnorderedIter(DoubleDBIDIter it)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleDBIDIter
advance()
Moves the iterator forward to the next entry.double
doubleValue()
Get the double valueint
internalGetIndex()
Internal only: Get the internal index.boolean
valid()
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:DBIDRef
Internal only: Get the internal index.NOT FOR PUBLIC USE - ELKI Optimization engine only.
- Specified by:
internalGetIndex
in interfaceDBIDRef
- Returns:
- Internal index
-
valid
public boolean valid()
Description copied from interface:Iter
Returns true if the iterator currently points to a valid object.
-
doubleValue
public double doubleValue()
Description copied from interface:DoubleDBIDIter
Get the double value- Specified by:
doubleValue
in interfaceDoubleDBIDIter
- Returns:
- double value
-
advance
public DoubleDBIDIter advance()
Description copied from interface:Iter
Moves the iterator forward to the next entry.
-
-