public class LIFORevQueue extends BlockRevQueue
BlockRevQueue.Block, BlockRevQueue.BlockFreeList
Modifier and Type | Field and Description |
---|---|
private BlockRevQueue.Block |
head |
free
EMPTY_QUEUE, outputType
HAS_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() |
shareFreeList
add, addParents, describe, outputType
private BlockRevQueue.Block head
public LIFORevQueue()
LIFORevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
MissingObjectException
IncorrectObjectTypeException
java.io.IOException
public 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 AbstractRevQueue
c
- commit to add.public RevCommit next()
Remove the first commit from the queue.
next
in class AbstractRevQueue
public void clear()
clear
in class AbstractRevQueue
boolean everbodyHasFlag(int f)
everbodyHasFlag
in class AbstractRevQueue
boolean anybodyHasFlag(int f)
anybodyHasFlag
in class AbstractRevQueue
public java.lang.String toString()
toString
in class java.lang.Object