edu.stanford.math.plex
protected static class SimplexStream.Stack.StackIterator extends java.lang.Object implements java.util.Iterator<Simplex>
Modifier and Type | Field and Description |
---|---|
protected SimplexStream.Stack.Segment |
current_seg |
protected int |
dimension_bound |
protected int |
fixed_dimension |
protected SimplexStream.Stack.Segment[] |
segments |
protected int |
segments_index |
protected int |
simplex_index |
Modifier | Constructor and Description |
---|---|
protected |
SimplexStream.Stack.StackIterator() |
|
SimplexStream.Stack.StackIterator(SimplexStream.Stack stack) |
|
SimplexStream.Stack.StackIterator(SimplexStream.Stack stack,
int dimension) |
protected SimplexStream.Stack.Segment[] segments
protected int segments_index
protected SimplexStream.Stack.Segment current_seg
protected int simplex_index
protected int fixed_dimension
protected final int dimension_bound
protected SimplexStream.Stack.StackIterator()
public SimplexStream.Stack.StackIterator(SimplexStream.Stack stack)
public SimplexStream.Stack.StackIterator(SimplexStream.Stack stack, int dimension)
public boolean hasNext()
hasNext
in interface java.util.Iterator<Simplex>
public Simplex next()
hasNext()
method returns
return each Simplex in the Stack exactly once. Does
not have any side effects on the stream.
next
in interface java.util.Iterator<Simplex>
java.util.NoSuchElementException
- Stack has no more elements.public void remove()
remove
in interface java.util.Iterator<Simplex>
java.lang.UnsupportedOperationException