edu.stanford.math.plex
public class TmpStream extends SimplexStream implements java.lang.Iterable<Simplex>, java.util.Iterator<Simplex>
TmpStream
class. Test code. The next()
methods for instances of this class do not remove simplices
from the stream.SimplexStream.ComparisonType, SimplexStream.Head, SimplexStream.Stack, SimplexStream.Tail
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the stream has more simplices.
|
java.util.Iterator<Simplex> |
iterator() |
int |
maxDimension()
Max dimension of simplices in the stream.
|
Simplex |
next()
Returns the next Simplex in the iteration of the Stack.
|
static TmpStream |
PaperTestCase() |
void |
remove()
Unsupported remove() operation.
|
int |
size()
How many simplices are in the stream?
|
static TmpStream |
Torus() |
convert_filtration_index, convertInterval, convertInterval, verify
public TmpStream(Simplex[] entries)
public boolean hasNext()
hasNext
in interface java.util.Iterator<Simplex>
hasNext
in class SimplexStream
public Simplex next()
hasNext()
method returns
return each Simplex in the Stack exactly once.
next
in interface java.util.Iterator<Simplex>
next
in class SimplexStream
java.util.NoSuchElementException
- Stack has no more elements.public void remove()
remove
in interface java.util.Iterator<Simplex>
remove
in class SimplexStream
java.lang.UnsupportedOperationException
public int size()
SimplexStream
size
in class SimplexStream
public int maxDimension()
SimplexStream
maxDimension
in class SimplexStream
public java.util.Iterator<Simplex> iterator()
iterator
in interface java.lang.Iterable<Simplex>
public static TmpStream PaperTestCase()
public static TmpStream Torus()