edu.stanford.math.plex
protected static class ExplicitStream.ExplicitStreamIterator extends java.lang.Object implements java.util.Iterator<Simplex>
Modifier and Type | Field and Description |
---|---|
protected int |
current_dimension |
protected int |
current_index |
protected boolean |
fixed_dimension |
protected int |
open_count |
protected ExplicitStream |
parent |
Modifier | Constructor and Description |
---|---|
protected |
ExplicitStream.ExplicitStreamIterator(ExplicitStream str) |
protected |
ExplicitStream.ExplicitStreamIterator(ExplicitStream str,
int dimension) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
has_next_index() |
boolean |
hasNext()
Returns true if the iterator has more simplices.
|
Simplex |
next()
Returns the next Simplex in the iteration of the stream.
|
protected boolean |
parent_is_consistent() |
void |
remove()
Unsupported remove() operation.
|
protected void |
skip_to_next_index_pair() |
protected int current_index
protected int current_dimension
protected boolean fixed_dimension
protected int open_count
protected ExplicitStream parent
protected ExplicitStream.ExplicitStreamIterator(ExplicitStream str)
protected ExplicitStream.ExplicitStreamIterator(ExplicitStream str, int dimension)
protected void skip_to_next_index_pair()
protected boolean parent_is_consistent()
protected boolean has_next_index()
public boolean hasNext()
hasNext
in interface java.util.Iterator<Simplex>
public Simplex next()
hasNext()
method returns
return each Simplex in the stream exactly once. Does
not have any side effects on the stream.
next
in interface java.util.Iterator<Simplex>
java.util.NoSuchElementException
- stream has no more elements.public void remove()
remove
in interface java.util.Iterator<Simplex>
java.lang.UnsupportedOperationException