|
||||||||
| 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.Accumulator
|
+--org.abora.gold.cross.BoxAccumulator
was NOT.A.TYPE but this prevented compilation
| Field Summary | |
protected int |
myIndex
|
protected PtrArray |
myRegions
|
protected CrossSpace |
mySpace
|
protected static InstanceCache |
SomeAccumulators
|
| 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 | |
BoxAccumulator(CrossSpace space,
int expectedBoxCount)
|
|
BoxAccumulator(CrossSpace space,
PtrArray regions,
int expectedBoxCount)
|
|
BoxAccumulator(GenericCrossRegion region)
|
|
| Method Summary | |
void |
aboutToAdd()
Make sure there is room to add a box |
void |
addAccumulatedBoxes(BoxAccumulator other)
Add in all the boxes in another accumulator |
int |
addBox(BoxStepper box)
Add the current box to the end of the array |
void |
addInverseTransformedBox(BoxStepper box,
GenericCrossDsp dsp)
Add the current box, transformed by the inverse of the dsp |
int |
addProjections(PtrArray projections,
int boxIndex)
Add a box to the end of the array |
int |
addSubstitutedBox(int current,
int dimension,
XnRegion newRegion)
Add a new box which is just like a current one except for the projection on one dimension. Return its index |
void |
addTransformedBox(BoxStepper box,
GenericCrossDsp dsp)
Add the current box, transformed by the dsp |
int |
boxCount()
|
XnRegion |
boxProjection(int box,
int dimension)
Change a projection of a box |
Accumulator |
copy()
Return a new Accumulator just like the current one, except that from now on they accumulate separately |
void |
deleteBox(int box)
Mark a box as deleted |
boolean |
distributeUnion(int added,
int start,
int stop)
Take my box at added and distribute it over my existing boxes from start to stop - 1 meanwhile taking pieces out of my box at remainder and delete it if it becomes empty Return true if there is still something left in the remainder |
int |
index()
|
static void |
initTimeNonInherited()
|
void |
intersectWithBox(BoxStepper box)
Intersect the current region with a box. |
boolean |
isDeleted(int box)
Whether the box has been deleted |
static void |
linkTimeNonInherited()
|
static Heaper |
make(CrossSpace space,
int expectedBoxCount)
|
static Heaper |
make(GenericCrossRegion region)
|
void |
mergeBoxes()
merge boxes which differ in only one projection |
XnRegion |
region()
The current region in the accumulator. |
void |
removeDeleted()
Remove boxes which have been deleted |
PtrArray |
secretRegions()
|
boolean |
splitUnion(int added,
int current,
int stop)
Take my box at added and union it with my box at current delete it if it becomes empty Return true if there is still something left in the added box |
void |
step(Heaper someObj)
Accumulate a new object into the Accumulator |
void |
storeBoxProjection(int box,
int dimension,
XnRegion region)
Change a projection of a box |
void |
tryMergeBoxes(int i,
int j)
If two boxes differ by only one projection, union the second into the first and delete the second |
void |
unionWithBox(BoxStepper box)
Add the current box to the accumulator |
void |
unionWithBoxes(BoxStepper boxes)
Add a sequence of disjoint boxes to the accumulator |
Heaper |
value()
Return the object that results from accumulating all those objects |
| Methods inherited from class org.abora.gold.collection.steppers.Accumulator |
actualHashForEqual, isEqual, ptrArray |
| 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 CrossSpace mySpace
protected PtrArray myRegions
protected int myIndex
protected static InstanceCache SomeAccumulators
| Constructor Detail |
public BoxAccumulator(GenericCrossRegion region)
public BoxAccumulator(CrossSpace space,
int expectedBoxCount)
public BoxAccumulator(CrossSpace space,
PtrArray regions,
int expectedBoxCount)
| Method Detail |
public Accumulator copy()
Accumulator
copy in class Accumulatorpublic void aboutToAdd()
public int addSubstitutedBox(int current,
int dimension,
XnRegion newRegion)
public int boxCount()
public XnRegion boxProjection(int box,
int dimension)
public void deleteBox(int box)
public boolean distributeUnion(int added,
int start,
int stop)
public int index()
public boolean isDeleted(int box)
public PtrArray secretRegions()
public boolean splitUnion(int added,
int current,
int stop)
public void storeBoxProjection(int box,
int dimension,
XnRegion region)
public void tryMergeBoxes(int i,
int j)
public void addAccumulatedBoxes(BoxAccumulator other)
public int addBox(BoxStepper box)
public void addInverseTransformedBox(BoxStepper box,
GenericCrossDsp dsp)
public int addProjections(PtrArray projections,
int boxIndex)
public void addTransformedBox(BoxStepper box,
GenericCrossDsp dsp)
public void intersectWithBox(BoxStepper box)
public void mergeBoxes()
public XnRegion region()
public void removeDeleted()
public void step(Heaper someObj)
Accumulator
step in class Accumulatorpublic void unionWithBox(BoxStepper box)
public void unionWithBoxes(BoxStepper boxes)
public Heaper value()
Accumulator
value in class Accumulatorpublic static void initTimeNonInherited()
public static void linkTimeNonInherited()
public static Heaper make(GenericCrossRegion region)
public static Heaper make(CrossSpace space,
int expectedBoxCount)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||