|
|
|||||||||
| 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<N,E>
N - the type of Node used in the indexE - the type of Entry used in the indexpublic class BreadthFirstEnumeration<N extends Node<E>,E extends Entry>

Provides a breadth first enumeration over the nodes of an index structure.
| Field Summary | |
|---|---|
Enumeration<IndexTreePath<E>> |
EMPTY_ENUMERATION
Represents an empty enumeration. |
private IndexTree<N,E> |
index
The index storing the nodes. |
private Queue<Enumeration<IndexTreePath<E>>> |
queue
The queue for the enumeration. |
| Constructor Summary | |
|---|---|
BreadthFirstEnumeration(IndexTree<N,E> index,
IndexTreePath<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. |
IndexTreePath<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<IndexTreePath<E extends Entry>> EMPTY_ENUMERATION
private Queue<Enumeration<IndexTreePath<E extends Entry>>> queue
private IndexTree<N extends Node<E>,E extends Entry> index
| Constructor Detail |
|---|
public BreadthFirstEnumeration(IndexTree<N,E> index,
IndexTreePath<E> rootPath)
index - the index tree storing the nodesrootPath - the root entry of the enumeration| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<IndexTreePath<E extends Entry>>true if and only if this enumeration object contains
at least one more element to provide; false otherwise.public IndexTreePath<E> nextElement()
nextElement in interface Enumeration<IndexTreePath<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 | |||||||||||