Package elki.database.ids.integer
Class DoubleIntegerDBIDHeap.UnorderedIter
- java.lang.Object
-
- elki.database.ids.integer.DoubleIntegerDBIDHeap.UnorderedIter
-
- All Implemented Interfaces:
DBIDIter
,DBIDRef
,DoubleDBIDIter
,Iter
- Enclosing class:
- DoubleIntegerDBIDHeap
protected class DoubleIntegerDBIDHeap.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 DoubleIntegerHeap.UnsortedIter
it
Iterator of the real heap.
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnorderedIter()
-
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 DoubleIntegerHeap.UnsortedIter it
Iterator of the real heap.
-
-
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.
-
-