|
||||||||
| 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.steppers.Stepper
|
+--org.abora.gold.collection.steppers.TableStepper
|
+--org.abora.gold.spaces.cross.PtrArrayStepper
A Stepper for stepping over the elements of a PtrArray in ascending or descending order.
This is a TableStepper even though it is stepping over a PtrArray instead of a table.
Should probably eventually be generalized to PrimArrays. NOT.A.TYPE
| Field Summary | |
protected PtrArray |
myArray
|
protected int |
myIndex
|
protected int |
myPastEnd
|
protected int |
myStep
|
| Fields inherited from class org.abora.gold.collection.steppers.Stepper |
TheEmptyStepper |
| 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 | |
PtrArrayStepper(PtrArray array,
int start,
int pastEnd,
int step)
|
|
PtrArrayStepper(Rcvr receiver)
|
|
| Method Summary | |
static TableStepper |
ascending(PtrArray array)
Note: this being a low level operation, and there being no lightweight form of immutable or lazily copied PtrArray, it is my caller's responsibility to pass me a PtrArray which will in fact not be changed during the life of this stepper. |
Stepper |
copy()
Return a new stepper which steps independently of me, but whose current value is the same as mine, and which must produce a future history of values which satisfies the same obligation that my contract obligates me to produce now. |
static TableStepper |
descending(PtrArray array)
Note: this being a low level operation, and there being no lightweight form of immutable or lazily copied PtrArray, it is my caller's responsibility to pass me a PtrArray which will in fact not be changed during the life of this stepper. |
Heaper |
fetch()
If I am exhausted (i.e., if (!! this->hasValue())), then return NULL. |
boolean |
hasValue()
Iff I have a current value (i.e. |
IntegerVar |
index()
Unboxed version of TableStepper::key. |
Position |
position()
A TableStepper actually enumerates the associations of a table. |
void |
sendSelfTo(Xmtr xmtr)
do nothing |
void |
step()
Essential. |
| Methods inherited from class org.abora.gold.collection.steppers.TableStepper |
forIndices, forKeyValues, forPositions, forPromisedPairs, info, key, stepManyPairs, stepManyPairs |
| Methods inherited from class org.abora.gold.collection.steppers.Stepper |
actualHashForEqual, asArray, atEnd, emptyStepper, forEach, forEachPromise, get, initTimeNonInherited, isEqual, itemStepper, linkTimeNonInherited, stepMany, stepMany, theOne |
| Methods inherited from class org.abora.gold.java.AboraHeaper |
asOop, basicInspect, displayString, error, hack, halt, inspect, 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 myArray
protected int myIndex
protected int myPastEnd
protected int myStep
| Constructor Detail |
public PtrArrayStepper(PtrArray array,
int start,
int pastEnd,
int step)
public PtrArrayStepper(Rcvr receiver)
| Method Detail |
public Stepper copy()
Stepper
copy in class TableStepperpublic Heaper fetch()
Stepper
fetch in class TableStepperpublic boolean hasValue()
Stepper
hasValue in class TableStepperpublic void step()
Stepper
step in class TableStepperpublic IntegerVar index()
TableStepper
index in class TableStepperpublic Position position()
TableStepper
position in class TableStepperpublic void sendSelfTo(Xmtr xmtr)
Heaper
sendSelfTo in class Heaperpublic static TableStepper ascending(PtrArray array)
public static TableStepper descending(PtrArray array)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||