private class DoubleObjectMaxHeap.UnsortedIter extends Object implements DoubleObjectHeap.UnsortedIter<V>
for (DoubleObjectHeap.UnsortedIter<V> 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 |
DoubleObjectMaxHeap.UnsortedIter() |
public boolean valid()
Iter
public Iter advance()
Iter
public double getKey()
DoubleObjectHeap.UnsortedIter
getKey
in interface DoubleObjectHeap.UnsortedIter<V>
public V getValue()
DoubleObjectHeap.UnsortedIter
getValue
in interface DoubleObjectHeap.UnsortedIter<V>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.