VectorType
- Type of Vectorizable, the first valuesDataType
- Type of data in the Pair, the second valuesPairType
- Type of Pair to use in the KDTree.@PublicationReference(author="Wikipedia", title="Tree traversal", type=WebPage, year=2009, url="http://en.wikipedia.org/wiki/Tree_traversal#Traversal") protected static class KDTree.InOrderKDTreeIterator<VectorType extends Vectorizable,DataType,PairType extends Pair<? extends VectorType,DataType>> extends java.lang.Object implements java.util.Iterator<PairType>
Modifier and Type | Field and Description |
---|---|
KDTree.InOrderKDTreeIterator<VectorType,DataType,PairType> |
leftIterator
Iterator for the left subtree.
|
PairType |
nodeValue
Value of the node
|
KDTree.InOrderKDTreeIterator<VectorType,DataType,PairType> |
rightIterator
Iterator for the right subtree.
|
Constructor and Description |
---|
InOrderKDTreeIterator(KDTree<VectorType,DataType,PairType> node)
Creates a new instance of InOrderKDTreeIterator
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
PairType |
next() |
void |
remove() |
public PairType extends Pair<? extends VectorType,DataType> nodeValue
public KDTree.InOrderKDTreeIterator<VectorType extends Vectorizable,DataType,PairType extends Pair<? extends VectorType,DataType>> leftIterator
public KDTree.InOrderKDTreeIterator<VectorType extends Vectorizable,DataType,PairType extends Pair<? extends VectorType,DataType>> rightIterator
public InOrderKDTreeIterator(KDTree<VectorType,DataType,PairType> node)
node
- Node from which to iterate.public boolean hasNext()
hasNext
in interface java.util.Iterator<PairType extends Pair<? extends VectorType,DataType>>
public PairType next()
next
in interface java.util.Iterator<PairType extends Pair<? extends VectorType,DataType>>
public void remove()
remove
in interface java.util.Iterator<PairType extends Pair<? extends VectorType,DataType>>