de.lmu.ifi.dbs.elki.utilities.datastructures.heap
Class Heap.Itr

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.datastructures.heap.Heap.Itr
All Implemented Interfaces:
Iterator<E>
Enclosing class:
Heap<E>

protected final class Heap.Itr
extends Object
implements Iterator<E>

Iterator over queue elements. No particular order (i.e. heap order!)


Field Summary
private  int cursor
          Cursor position
private  int expectedModCount
          Modification counter this iterator is valid for.
 
Constructor Summary
protected Heap.Itr()
           
 
Method Summary
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cursor

private int cursor
Cursor position


expectedModCount

private int expectedModCount
Modification counter this iterator is valid for.

Constructor Detail

Heap.Itr

protected Heap.Itr()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<E>

next

public E next()
Specified by:
next in interface Iterator<E>

remove

public void remove()
Specified by:
remove in interface Iterator<E>

Release 0.4.0 (2011-09-20_1324)