public class LIFORevQueue extends BlockRevQueue
BlockRevQueue.Block, BlockRevQueue.BlockFreeList| Modifier and Type | Field and Description |
|---|---|
private BlockRevQueue.Block |
head |
freeEMPTY_QUEUE, outputTypeHAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO| Constructor and Description |
|---|
LIFORevQueue()
Create an empty LIFO queue.
|
LIFORevQueue(Generator s) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(RevCommit c)
Add a commit to the queue.
|
(package private) boolean |
anybodyHasFlag(int f) |
void |
clear()
Remove all entries from this queue.
|
(package private) boolean |
everbodyHasFlag(int f) |
RevCommit |
next()
Return the next commit to the application, or the next generator.
|
java.lang.String |
toString() |
shareFreeListadd, addParents, describe, outputTypeprivate BlockRevQueue.Block head
public LIFORevQueue()
LIFORevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
MissingObjectExceptionIncorrectObjectTypeExceptionjava.io.IOExceptionpublic void add(RevCommit c)
This method always adds the commit, even if it is already in the queue or
previously was in the queue but has already been removed. To control
queue admission use AbstractRevQueue.add(RevCommit, RevFlag).
add in class AbstractRevQueuec - commit to add.public RevCommit next()
Remove the first commit from the queue.
next in class AbstractRevQueuepublic void clear()
clear in class AbstractRevQueueboolean everbodyHasFlag(int f)
everbodyHasFlag in class AbstractRevQueueboolean anybodyHasFlag(int f)
anybodyHasFlag in class AbstractRevQueuepublic java.lang.String toString()
toString in class java.lang.Object