|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.index.tree.BreadthFirstEnumeration<O,N,E>
O
- Object typeN
- the type of Node used in the indexE
- the type of Entry used in the indexpublic class BreadthFirstEnumeration<O extends DatabaseObject,N extends Node<N,E>,E extends Entry>
Provides a breadth first enumeration over the nodes of an index structure.
Field Summary | |
---|---|
Enumeration<TreeIndexPath<E>> |
EMPTY_ENUMERATION
Represents an empty enumeration. |
private TreeIndex<O,N,E> |
index
The index storing the nodes. |
private Queue<Enumeration<TreeIndexPath<E>>> |
queue
The queue for the enumeration. |
Constructor Summary | |
---|---|
BreadthFirstEnumeration(TreeIndex<O,N,E> index,
TreeIndexPath<E> rootPath)
Creates a new breadth first enumeration with the specified node as root node. |
Method Summary | |
---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
TreeIndexPath<E> |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Enumeration<TreeIndexPath<E extends Entry>> EMPTY_ENUMERATION
private Queue<Enumeration<TreeIndexPath<E extends Entry>>> queue
private TreeIndex<O extends DatabaseObject,N extends Node<N,E>,E extends Entry> index
Constructor Detail |
---|
public BreadthFirstEnumeration(TreeIndex<O,N,E> index, TreeIndexPath<E> rootPath)
rootPath
- the root entry of the enumerationindex
- the index storing the nodesMethod Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<TreeIndexPath<E extends Entry>>
true
if and only if this enumeration object
contains at least one more element to provide; false
otherwise.public TreeIndexPath<E> nextElement()
nextElement
in interface Enumeration<TreeIndexPath<E extends Entry>>
NoSuchElementException
- if no more elements exist.
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |