public static final class Interval.UsePosList extends Object
Modifier | Constructor and Description |
---|---|
|
UsePosList(int initialCapacity)
Creates a use list.
|
private |
UsePosList(IntList list) |
Modifier and Type | Method and Description |
---|---|
void |
add(int usePos,
Interval.RegisterPriority registerPriority) |
Interval.RegisterPriority |
registerPriority(int index)
Gets the register priority for the use position at a specified index in this list.
|
void |
removeLowestUsePos() |
void |
setRegisterPriority(int index,
Interval.RegisterPriority registerPriority) |
int |
size() |
Interval.UsePosList |
splitAt(int splitPos)
Splits this list around a given position.
|
String |
toString() |
int |
usePos(int index)
Gets the use position at a specified index in this list.
|
public UsePosList(int initialCapacity)
initialCapacity
- the initial capacity of the list in terms of entriesprivate UsePosList(IntList list)
public Interval.UsePosList splitAt(int splitPos)
splitPos
are removed from this list and added to the
returned list.splitPos
- the position for the splitsplitPos
public int usePos(int index)
index
- the index of the entry for which the use position is returnedindex
in this listpublic Interval.RegisterPriority registerPriority(int index)
index
- the index of the entry for which the register priority is returnedindex
in this listpublic void add(int usePos, Interval.RegisterPriority registerPriority)
public int size()
public void removeLowestUsePos()
public void setRegisterPriority(int index, Interval.RegisterPriority registerPriority)