|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.white.xpp.basic.Heaper
|
+--org.abora.white.collection.tables.ScruTable
|
+--org.abora.white.collection.tables.MuTable
|
+--org.abora.white.collection.tables.IntegerTable
|
+--org.abora.white.collection.tables.MuArray
|
+--org.abora.white.collection.tables.ActualArray
Implementation of MuArray.
| Field Summary | |
protected PtrArray |
elements
|
protected int |
tally
|
| Constructor Summary | |
protected |
ActualArray()
The optional argument just hints at the number of elements to eventually be added. |
protected |
ActualArray(IntegerValue size)
The optional argument just hints at the number of elements to eventually be added. |
protected |
ActualArray(PtrArray newElems,
int newTally)
|
protected |
ActualArray(Rcvr receiver)
|
| Method Summary | |
Heaper |
atIntStore(IntegerValue index,
Heaper value)
store the new value at the specified position. |
Heaper |
atStore(Position key,
Heaper value)
Associate value with key, whether or not there is a previous association. |
CoordinateSpace |
coordinateSpace()
The kind of elements used to index into the table are Positions of this coordinate space. |
ScruTable |
copy()
A new one whose initial state is my current state, but that doesn't track changes. |
IntegerValue |
count()
Return the number of domain elements, which is to say, the number of associations. |
void |
destruct()
|
XnRegion |
domain()
Return an XuRegion representing a snapshot of the current domain. |
PtrArray |
elementsArray()
return the elements array for rapid processing |
ScruTable |
emptySize(IntegerValue size)
Return an empty table just like the current one. |
int |
endOffset()
return the size of the elements array for rapid processing |
void |
enlarge()
Enlarge the receiver to contain more slots filled with nil. |
int |
fastHash()
|
Heaper |
fetch(Position key)
Return the range element at the domain position key. |
IntegerValue |
highestIndex()
Given that the table is non-empty, 'intTab->highestIndex()' is equivalent to 'CAST(IntegerRegion,intTab->domain())->upperBound() -1'. |
Heaper |
intFetch(IntegerValue index)
Unboxed version. |
boolean |
intWipe(IntegerValue index)
Remove if the index is the last thing in the table. |
boolean |
isEmpty()
Is there anything in the table? 'table->isEmpty()' iff 'table->domain()->isEmpty()'. |
IntegerValue |
lowestIndex()
Given that the table is non-empty, 'intTab->lowestIndex()' is equivalent to 'CAST(IntegerRegion,intTab->domain())->lowerBound()'. |
int |
maxElements()
return the size of the elements array for rapid processing |
ScruTable |
offsetSubTableBetween(IntegerValue startIndex,
IntegerValue stopIndex,
IntegerValue firstIndex)
Return a table which contains the elements from start to stop, starting at firstIndex. |
void |
printOn(java.io.PrintWriter aStream)
This should rarely be overridden. |
XnRegion |
runAt(Position anIdx)
Return the length of the run starting at position key. |
XnRegion |
runAtInt(IntegerValue anIdx)
Unboxed version. |
IntegerValue |
search(IntegerValue item)
|
void |
sendSelfTo(Xmtr xmtr)
|
int |
startOffset()
return the size of the elements array for rapid processing |
TableStepper |
stepper(OrderSpec order)
Return a stepper on this table. |
ScruTable |
subTable(XnRegion reg)
Return a table which contains only the intersection of this table's domain and the domain specified by 'region'. |
ScruTable |
subTableBetween(IntegerValue start,
IntegerValue stop)
Hack for C++ overloading problem |
boolean |
wipe(Position key)
Remove a key->value association from the table. |
| Methods inherited from class org.abora.white.collection.tables.MuArray |
array, array, array, array, array, arrayAccumulator, arrayAccumulator, includesIntKey, includesKey, make, offsetScruArray, theOne, transformedBy, wipeAll |
| Methods inherited from class org.abora.white.collection.tables.IntegerTable |
atIntIntroduce, atIntReplace, atIntroduce, atReplace, intRemove, make, make, make, remove |
| Methods inherited from class org.abora.white.collection.tables.MuTable |
actualHashForEqual, asImmuTable, asMuTable, introduceAll, introduceAll, introduceAll, isEqual, make, make, problems, removeAll, replaceAll, replaceAll, replaceAll, storeAll, storeAll, storeAll |
| Methods inherited from class org.abora.white.collection.tables.ScruTable |
backfollowFrom, contentsEqual, contentsHash, get, intGet, printOnWithSimpleSyntax, printOnWithSyntax, range, stepper |
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destroy, equals, hashForEqual, printContentsOn, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected PtrArray elements
protected int tally
| Constructor Detail |
protected ActualArray()
protected ActualArray(IntegerValue size)
protected ActualArray(PtrArray newElems,
int newTally)
protected ActualArray(Rcvr receiver)
| Method Detail |
public int fastHash()
public boolean isEmpty()
ScruTable
isEmpty in class MuArray
public Heaper atIntStore(IntegerValue index,
Heaper value)
atIntStore in class MuArraypublic CoordinateSpace coordinateSpace()
ScruTable
coordinateSpace in class MuArraypublic IntegerValue count()
ScruTable
count in class MuArraypublic XnRegion domain()
ScruTable
domain in class MuArraypublic IntegerValue highestIndex()
IntegerTable
highestIndex in class MuArraypublic Heaper intFetch(IntegerValue index)
ScruTable
intFetch in class MuArraypublic boolean intWipe(IntegerValue index)
intWipe in class MuArraypublic IntegerValue lowestIndex()
IntegerTable
lowestIndex in class MuArray
public ScruTable offsetSubTableBetween(IntegerValue startIndex,
IntegerValue stopIndex,
IntegerValue firstIndex)
MuArray
offsetSubTableBetween in class MuArraypublic ScruTable subTable(XnRegion reg)
ScruTable
subTable in class MuArray
public ScruTable subTableBetween(IntegerValue start,
IntegerValue stop)
IntegerTable
subTableBetween in class MuArraypublic ScruTable copy()
ScruTable
copy in class MuArraypublic ScruTable emptySize(IntegerValue size)
ScruTable
emptySize in class MuArraypublic void destruct()
destruct in class Heaperpublic XnRegion runAtInt(IntegerValue anIdx)
ScruTable
runAtInt in class MuArraypublic void printOn(java.io.PrintWriter aStream)
Heaper
printOn in class ScruTablepublic PtrArray elementsArray()
public int endOffset()
public void enlarge()
public int maxElements()
public int startOffset()
public IntegerValue search(IntegerValue item)
public TableStepper stepper(OrderSpec order)
MuArray
stepper in class MuArray
public Heaper atStore(Position key,
Heaper value)
MuTable
atStore in class MuArraypublic Heaper fetch(Position key)
ScruTable
fetch in class MuArraypublic XnRegion runAt(Position anIdx)
ScruTable
runAt in class MuArraypublic boolean wipe(Position key)
MuTable
wipe in class MuArraypublic void sendSelfTo(Xmtr xmtr)
sendSelfTo in class MuTable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||