edu.stanford.math.plex
protected static class SimplexTable.SimpleTableIterator extends java.lang.Object implements java.util.Iterator<Simplex>
Modifier and Type | Field and Description |
---|---|
protected int |
current_count |
protected int |
current_index |
protected SimplexTable |
parent |
protected int |
start_size |
protected Simplex[] |
vec |
Modifier | Constructor and Description |
---|---|
protected |
SimplexTable.SimpleTableIterator(SimplexTable tbl) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the iterator has more simplices.
|
Simplex |
next()
Returns the next Simplex in the iteration over the table.
|
protected boolean |
parent_is_consistent() |
void |
remove()
Unsupported remove() operation.
|
protected int current_index
protected int current_count
protected final int start_size
protected final Simplex[] vec
protected final SimplexTable parent
protected SimplexTable.SimpleTableIterator(SimplexTable tbl)
protected boolean parent_is_consistent()
public boolean hasNext()
hasNext
in interface java.util.Iterator<Simplex>
public Simplex next()
hasNext()
method returns
return each Simplex in the table exactly once. Does
not have any side effects on the table.
next
in interface java.util.Iterator<Simplex>
java.util.NoSuchElementException
- table has no more elements.public void remove()
remove
in interface java.util.Iterator<Simplex>
java.lang.UnsupportedOperationException