private class DoubleMaxHeap.UnsortedIter extends Object implements DoubleHeap.UnsortedIter
for (DoubleHeap.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 |
get()
Get the iterators current object.
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public boolean valid()
Iter
public Iter advance()
Iter
public double get()
DoubleHeap.UnsortedIter
get
in interface DoubleHeap.UnsortedIter
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.