|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.gold.java.AboraHeaper
|
+--org.abora.gold.xpp.basic.Heaper
|
+--org.abora.gold.collection.tables.ScruTable
|
+--org.abora.gold.collection.tables.MuTable
|
+--org.abora.gold.collection.tables.IntegerTable
|
+--org.abora.gold.collection.tables.MuArray
|
+--org.abora.gold.collection.tables.ActualArray
| Field Summary | |
protected PtrArray |
elements
|
protected int |
tally
|
| Fields inherited from class org.abora.gold.collection.tables.MuArray |
MustBeContiguousDomainSignal |
| Fields inherited from class org.abora.gold.collection.tables.MuTable |
AlreadyInTableSignal, NotInDomainSignal, NullInsertionSignal |
| Fields inherited from class org.abora.gold.collection.tables.ScruTable |
NotInTableSignal, WrongCoordSpaceSignal |
| Fields inherited from class org.abora.gold.xpp.basic.Heaper |
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes |
| Fields inherited from class org.abora.gold.java.AboraHeaper |
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag |
| Constructor Summary | |
ActualArray()
The optional argument just hints at the number of elements to eventually be added. |
|
ActualArray(IntegerVar size)
The optional argument just hints at the number of elements to eventually be added. |
|
ActualArray(PtrArray newElems,
int newTally)
|
|
ActualArray(Rcvr receiver)
|
|
| Method Summary | |
Heaper |
atIntStore(IntegerVar 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. Return the old range element if the position was previously occupied, NULL otherwise |
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. |
IntegerVar |
count()
Return the number of domain elements, which is to say, the number of associations. 'table->count()' should be equivalent to 'table->domain()->count()'. Used to say: 'Return the number of range elements'. |
void |
destruct()
Classes should implement this message rather than a destructor. |
XnRegion |
domain()
Return an XuRegion representing a snapshot of the current domain. 'table->domain()->hasMember(p)' iff 'table->fetch(p) !!= NULL'. |
PtrArray |
elementsArray()
return the elements array for rapid processing |
ScruTable |
emptySize(IntegerVar 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. |
IntegerVar |
highestIndex()
Given that the table is non-empty, 'intTab->highestIndex()' is equivalent to 'CAST(IntegerRegion,intTab->domain())->upperBound() -1'. |
void |
inspect()
|
Heaper |
intFetch(IntegerVar index)
Unboxed version. |
boolean |
intWipe(IntegerVar index)
Remove if the index is the last thing in the table. Blast if the index is some other element of the table. *Ignore* the request if it is any element not in the table. |
boolean |
isEmpty()
Is there anything in the table? 'table->isEmpty()' iff 'table->domain()->isEmpty()'. |
IntegerVar |
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(IntegerVar startIndex,
IntegerVar stopIndex,
IntegerVar firstIndex)
Return a table which contains the elements from start to stop, starting at firstIndex. Zero-based subclasses will blast if firstIndex is non-zero |
void |
printOn(java.io.PrintWriter aStream)
|
XnRegion |
runAt(Position anIdx)
Return the length of the run starting at position key. |
XnRegion |
runAtInt(IntegerVar anIdx)
Unboxed version. |
IntegerVar |
search(java.lang.Integer item)
|
void |
sendSelfTo(Xmtr xmtr)
do nothing |
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'. table->subTable(r)->domain()->isEqual( table->domain()->intersect(r) ). It is unspecified whether the resulting table starts as a snapshot of a subset of me, after which we go our own ways; or whether the resulting table is a view onto a subset of me, such that changes to me are also visible to him. |
ScruTable |
subTableBetween(IntegerVar start,
IntegerVar stop)
Hack for C++ overloading problem |
boolean |
wipe(Position key)
Remove a key->value association from the table. Do not blast (or do anything else) if the key is not in my current domain. Return TRUE if the association was present and removed, Return FALSE if the association was not there |
| Methods inherited from class org.abora.gold.collection.tables.MuArray |
array, array, array, array, array, arrayAccumulator, arrayAccumulator, includesIntKey, includesKey, make, offsetScruArray, theOne, transformedBy, wipeAll |
| Methods inherited from class org.abora.gold.collection.tables.IntegerTable |
atIntIntroduce, atIntReplace, atIntroduce, atReplace, intRemove, make, make, make, make, make, make, remove |
| Methods inherited from class org.abora.gold.collection.tables.MuTable |
actualHashForEqual, asImmuTable, asMuTable, initTimeNonInherited, introduceAll, introduceAll, introduceAll, isEqual, make, make, problems, removeAll, replaceAll, replaceAll, replaceAll, storeAll, storeAll, storeAll, test |
| Methods inherited from class org.abora.gold.collection.tables.ScruTable |
asOrderedCollection, backfollowFrom, contentsEqual, contentsHash, dox, get, intGet, isEqual, printOnWithSimpleSyntax, printOnWithSyntax, range, stepper |
| Methods inherited from class org.abora.gold.java.AboraHeaper |
asOop, basicInspect, displayString, error, hack, halt, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected PtrArray elements
protected int tally
| Constructor Detail |
public ActualArray()
public ActualArray(IntegerVar size)
public ActualArray(PtrArray newElems,
int newTally)
public ActualArray(Rcvr receiver)
| Method Detail |
public int fastHash()
public boolean isEmpty()
ScruTable
isEmpty in class MuArray
public Heaper atIntStore(IntegerVar index,
Heaper value)
atIntStore in class MuArraypublic CoordinateSpace coordinateSpace()
ScruTable
coordinateSpace in class MuArraypublic IntegerVar count()
ScruTable
count in class MuArraypublic XnRegion domain()
ScruTable
domain in class MuArraypublic IntegerVar highestIndex()
IntegerTable
highestIndex in class MuArraypublic Heaper intFetch(IntegerVar index)
ScruTable
intFetch in class MuArraypublic boolean intWipe(IntegerVar index)
intWipe in class MuArraypublic IntegerVar lowestIndex()
IntegerTable
lowestIndex in class MuArray
public ScruTable offsetSubTableBetween(IntegerVar startIndex,
IntegerVar stopIndex,
IntegerVar firstIndex)
MuArray
offsetSubTableBetween in class MuArraypublic ScruTable subTable(XnRegion reg)
ScruTable
subTable in class MuArray
public ScruTable subTableBetween(IntegerVar start,
IntegerVar stop)
IntegerTable
subTableBetween in class MuArraypublic ScruTable copy()
ScruTable
copy in class MuArraypublic ScruTable emptySize(IntegerVar size)
ScruTable
emptySize in class MuArraypublic void destruct()
Heaper
destruct in class Heaperpublic XnRegion runAtInt(IntegerVar anIdx)
ScruTable
runAtInt in class MuArraypublic void printOn(java.io.PrintWriter aStream)
printOn in class ScruTablepublic PtrArray elementsArray()
public int endOffset()
public void enlarge()
public int maxElements()
public int startOffset()
public void inspect()
inspect in class AboraHeaperpublic IntegerVar search(java.lang.Integer 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)
Heaper
sendSelfTo in class MuTable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||