edu.stanford.math.plex
public static class SimplexStream.Head extends java.lang.Object
Head
provides the FO part of a FIFO queue when
attached to a Tail
to which simplices have been
enqueued.Modifier | Constructor and Description |
---|---|
protected |
SimplexStream.Head() |
|
SimplexStream.Head(SimplexStream.Tail q) |
Modifier and Type | Method and Description |
---|---|
SimplexStream.Head |
copy() |
boolean |
eql(SimplexStream.Head q)
Check equality of Head with another.
|
boolean |
lessThan(SimplexStream.Head q)
Compare one Head to another.
|
Simplex |
nextEntry()
Get the next entry from the underlying Queue.
|
java.lang.String |
toString() |
protected SimplexStream.Head()
public SimplexStream.Head(SimplexStream.Tail q)
public SimplexStream.Head copy()
public java.lang.String toString()
toString
in class java.lang.Object
public Simplex nextEntry()
This only works is we don't outrun the underlying Tail.
public boolean lessThan(SimplexStream.Head q)
This is a very fast comparison that will only work if both Head instances are heads for the same Tail.
q
- Head to comparepublic boolean eql(SimplexStream.Head q)
This is used only by assertions.
q
- Head to compare