private class DoubleLongMaxHeap.UnsortedIter extends Object implements DoubleLongHeap.UnsortedIter
for (DoubleLongHeap.UnsortedIter iter = heap.unsortedIter(); iter.valid(); iter.next()) {
doSomething(iter.get());
}
Modifier and Type | Field and Description |
---|---|
protected int |
pos
Iterator position.
|
Modifier | Constructor and Description |
---|---|
private |
UnsortedIter() |
Modifier and Type | Method and Description |
---|---|
Iter |
advance()
Moves the iterator forward to the next entry.
|
double |
getKey()
Get the current key
|
long |
getValue()
Get the current value
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public boolean valid()
Iter
public Iter advance()
Iter
public double getKey()
DoubleLongHeap.UnsortedIter
getKey
in interface DoubleLongHeap.UnsortedIter
public long getValue()
DoubleLongHeap.UnsortedIter
getValue
in interface DoubleLongHeap.UnsortedIter
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.