|
||||||||
| 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
MuTable represents the base class for all side-effectable tables. It provides the basic change protocol for tables. See MuSet.
| Constructor Summary | |
protected |
MuTable()
Create a new table with an unspecified number of initial domain positions. |
protected |
MuTable(Rcvr receiver)
|
| Method Summary | |
int |
actualHashForEqual()
See ScruTable::isEqual |
ImmuTable |
asImmuTable()
Return a side-effect-free snapshot of my current contents. |
MuTable |
asMuTable()
Note that muTable->asMuTable() returns a copy of the original. |
void |
atIntIntroduce(IntegerValue key,
Heaper value)
Unboxed version. |
void |
atIntReplace(IntegerValue key,
Heaper value)
Unboxed version. |
void |
atIntroduce(Position key,
Heaper value)
Associate key with value unless key is already associated with another value. |
Heaper |
atIntStore(IntegerValue aKey,
Heaper anObject)
Unboxed version. |
void |
atReplace(Position key,
Heaper value)
Associate key with value only if key is already associated with a value. |
abstract Heaper |
atStore(Position key,
Heaper value)
Associate value with key, whether or not there is a previous association. |
abstract CoordinateSpace |
coordinateSpace()
The kind of elements used to index into the table are Positions of this coordinate space. |
abstract ScruTable |
copy()
A new one whose initial state is my current state, but that doesn't track changes. |
abstract IntegerValue |
count()
Return the number of domain elements, which is to say, the number of associations. |
abstract XnRegion |
domain()
Return an XuRegion representing a snapshot of the current domain. |
abstract ScruTable |
emptySize(IntegerValue size)
Return an empty table just like the current one. |
abstract Heaper |
fetch(Position key)
Return the range element at the domain position key. |
boolean |
includesIntKey(IntegerValue aKey)
Unboxed version. |
abstract boolean |
includesKey(Position aKey)
includesKey is used to test for the presence of a key->value pair in the table. |
Heaper |
intFetch(IntegerValue key)
Unboxed version. |
void |
intRemove(IntegerValue anIdx)
Unboxed version. |
void |
introduceAll(ScruTable other)
|
void |
introduceAll(ScruTable table,
Dsp dsp)
|
void |
introduceAll(ScruTable table,
Dsp dsp,
XnRegion region)
'MuTable::introduceAll is to 'MuTable::introduce' as 'MuTable::storeAll' is to 'MuTable::store'. |
boolean |
intWipe(IntegerValue anIdx)
Unboxed version. |
abstract boolean |
isEmpty()
Is there anything in the table? 'table->isEmpty()' iff 'table->domain()->isEmpty()'. |
boolean |
isEqual(Heaper other)
All MuTable subclasses have equality based on identity (now and forever equal. |
static MuTable |
make(CoordinateSpace cs)
A new empty MuTable whose domain space is 'cs'. |
static MuTable |
make(CoordinateSpace cs,
XnRegion reg)
Semantically identical to 'muTable(cs)'. |
static void |
problems()
|
void |
remove(Position anIdx)
Remove a key->value association from the table. |
void |
removeAll(XnRegion region)
|
void |
replaceAll(ScruTable other)
|
void |
replaceAll(ScruTable other,
Dsp dsp)
|
void |
replaceAll(ScruTable table,
Dsp dsp,
XnRegion region)
'MuTable::replaceAll is to 'MuTable::replace' as 'MuTable::storeAll' is to 'MuTable::store'. |
abstract XnRegion |
runAt(Position key)
Return the length of the run starting at position key. |
XnRegion |
runAtInt(IntegerValue index)
Unboxed version. |
void |
sendSelfTo(Xmtr xmtr)
|
abstract TableStepper |
stepper(OrderSpec order)
Return a TableStepper which will enumerate my key->value mappings. |
void |
storeAll(ScruTable other)
|
void |
storeAll(ScruTable table,
Dsp dsp)
|
void |
storeAll(ScruTable table,
Dsp dsp,
XnRegion region)
I 'store' into myself (see MuTable::store) all the associations from 'table'. |
abstract ScruTable |
subTable(XnRegion reg)
Return a table which contains only the intersection of this table's domain and the domain specified by 'region'. |
abstract boolean |
wipe(Position anIdx)
Remove a key->value association from the table. |
void |
wipeAll(XnRegion region)
I 'wipe' from myself all associations whose key is in 'region'. |
| Methods inherited from class org.abora.white.collection.tables.ScruTable |
backfollowFrom, contentsEqual, contentsHash, get, intGet, printOn, printOnWithSimpleSyntax, printOnWithSyntax, range, stepper, theOne, transformedBy |
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destroy, destruct, equals, hashForEqual, printContentsOn, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected MuTable()
protected MuTable(Rcvr receiver)
| Method Detail |
public void atIntroduce(Position key,
Heaper value)
public void atReplace(Position key,
Heaper value)
public abstract Heaper atStore(Position key,
Heaper value)
public abstract CoordinateSpace coordinateSpace()
ScruTable
coordinateSpace in class ScruTablepublic abstract IntegerValue count()
ScruTable
count in class ScruTablepublic abstract XnRegion domain()
ScruTable
domain in class ScruTablepublic abstract Heaper fetch(Position key)
ScruTable
fetch in class ScruTablepublic void remove(Position anIdx)
public abstract ScruTable subTable(XnRegion reg)
ScruTable
subTable in class ScruTablepublic abstract boolean wipe(Position anIdx)
public void introduceAll(ScruTable table,
Dsp dsp,
XnRegion region)
public void replaceAll(ScruTable table,
Dsp dsp,
XnRegion region)
public void storeAll(ScruTable table,
Dsp dsp,
XnRegion region)
public void wipeAll(XnRegion region)
public abstract boolean includesKey(Position aKey)
ScruTable
includesKey in class ScruTablepublic abstract boolean isEmpty()
ScruTable
isEmpty in class ScruTablepublic abstract TableStepper stepper(OrderSpec order)
ScruTable
stepper in class ScruTablepublic ImmuTable asImmuTable()
ScruTable
asImmuTable in class ScruTablepublic MuTable asMuTable()
asMuTable in class ScruTablepublic abstract XnRegion runAt(Position key)
ScruTable
runAt in class ScruTablepublic abstract ScruTable copy()
ScruTable
copy in class ScruTablepublic abstract ScruTable emptySize(IntegerValue size)
ScruTable
emptySize in class ScruTable
public void atIntIntroduce(IntegerValue key,
Heaper value)
public void atIntReplace(IntegerValue key,
Heaper value)
public Heaper atIntStore(IntegerValue aKey,
Heaper anObject)
public boolean includesIntKey(IntegerValue aKey)
ScruTable
includesIntKey in class ScruTablepublic Heaper intFetch(IntegerValue key)
ScruTable
intFetch in class ScruTablepublic void intRemove(IntegerValue anIdx)
public boolean intWipe(IntegerValue anIdx)
public XnRegion runAtInt(IntegerValue index)
ScruTable
runAtInt in class ScruTablepublic void introduceAll(ScruTable other)
public void introduceAll(ScruTable table,
Dsp dsp)
public void removeAll(XnRegion region)
public void replaceAll(ScruTable other)
public void replaceAll(ScruTable other,
Dsp dsp)
public void storeAll(ScruTable other)
public void storeAll(ScruTable table,
Dsp dsp)
public int actualHashForEqual()
ScruTable
actualHashForEqual in class ScruTablepublic boolean isEqual(Heaper other)
ScruTable
isEqual in class ScruTablepublic void sendSelfTo(Xmtr xmtr)
sendSelfTo in class Heaperpublic static void problems()
public static MuTable make(CoordinateSpace cs)
public static MuTable make(CoordinateSpace cs,
XnRegion reg)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||