Class AbstractBSPTree.NodeIterator<P extends Point<P>,N extends AbstractBSPTree.AbstractNode<P,N>>
- java.lang.Object
-
- org.apache.commons.geometry.core.partitioning.bsp.AbstractBSPTree.NodeIterator<P,N>
-
- Type Parameters:
P
- Point implementation typeN
- Node implementation type
- All Implemented Interfaces:
java.util.Iterator<N>
- Enclosing class:
- AbstractBSPTree<P extends Point<P>,N extends AbstractBSPTree.AbstractNode<P,N>>
private static final class AbstractBSPTree.NodeIterator<P extends Point<P>,N extends AbstractBSPTree.AbstractNode<P,N>> extends java.lang.Object implements java.util.Iterator<N>
Class for iterating through the nodes in a BSP subtree.
-
-
Constructor Summary
Constructors Constructor Description NodeIterator(N subtreeRoot)
Create a new instance for iterating over the nodes in the given subtree.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
N
next()
-
-
-
Field Detail
-
stack
private final java.util.Deque<N extends AbstractBSPTree.AbstractNode<P,N>> stack
The current node stack.
-
-
Constructor Detail
-
NodeIterator
NodeIterator(N subtreeRoot)
Create a new instance for iterating over the nodes in the given subtree.- Parameters:
subtreeRoot
- the root node of the subtree to iterate
-
-