private class DoubleLongMaxHeap.UnsortedIter extends java.lang.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 |
---|---|
DoubleLongMaxHeap.UnsortedIter |
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 DoubleLongMaxHeap.UnsortedIter advance()
Iter
public double getKey()
DoubleLongHeap.UnsortedIter
getKey
in interface DoubleLongHeap.UnsortedIter
public long getValue()
DoubleLongHeap.UnsortedIter
getValue
in interface DoubleLongHeap.UnsortedIter
Copyright © 2019 ELKI Development Team. License information.