|
||||||||
| 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.basic.PrimArray
|
+--org.abora.gold.collection.basic.PrimDataArray
|
+--org.abora.gold.collection.basic.PrimIntegerArray
A common superclass for primitive arrays of integer types; this is the point to add bulk operations for Boolean operations, etc if we ever want them
| Field Summary |
| Fields inherited from class org.abora.gold.collection.basic.PrimArray |
OurGutsCount |
| 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 | |
protected |
PrimIntegerArray(int count,
int datumSize)
Constructor for PrimIntegerArray. |
| Method Summary | |
protected void |
addData(int myStart,
PrimDataArray other,
int otherStart,
int count)
Add the respective elements of other to this over the given index range. |
protected int |
compareData(int myStart,
PrimDataArray other,
int otherStart,
int count)
over given range, returns - if this < other; 0 if this == other; + if this > other. |
void |
copyToBuffer(int[] buffer,
int size,
int count,
int start)
Copy of a piece of this array into the provided buffer with size bytes of space available. |
int |
elementsHash(int count,
int start)
A hash of the range of values out of the array |
Heaper |
fetchValue(int index)
Fetch a value; may be a Heaper, NULL, or a PrimValue as appropriate to PrimArray subclass. |
PrimIntegerArray |
hold(int index,
IntegerVar value)
|
PrimIntegerArray |
hold(int index,
IntegerVar value,
boolean canModify)
Store a new value into the array at the given index. |
int |
indexOf(Heaper value,
int start,
int n)
The index of the nth occurrence of the given value at or after (before if n is negative) the given index, or -1 if there is none. |
int |
indexOfInteger(IntegerVar value)
|
int |
indexOfInteger(IntegerVar value,
int start)
|
int |
indexOfInteger(IntegerVar value,
int start,
int count)
|
int |
indexPast(Heaper value,
int start,
int n)
The index of the nth occurrence of anything but the given value at or after (before if n is negative) the given index, or -1 if there is none. |
int |
indexPastInteger(IntegerVar value)
|
int |
indexPastInteger(IntegerVar value,
int start)
|
int |
indexPastInteger(IntegerVar value,
int start,
int count)
|
IntegerVar |
integerAt(int index)
Get an actual integer value |
protected PrimArray |
makeNew(int size,
PrimArray source,
int sourceOffset,
int count,
int destOffset)
|
protected void |
printElementOn(int index,
Stream oo)
|
protected int |
signOfNonZeroAfter(int start)
return the sign of the next non-zero element after start, or 0 if no such element. |
PrimSpec |
spec()
A description of the kinds of things which can be stored in this array |
void |
storeAll(Heaper value,
int count,
int start)
Set a range of elements to have the same value |
void |
storeInteger(int index,
IntegerVar value)
Store an integer value |
void |
storeValue(int index,
Heaper value)
Store a value; may be a Heaper, NULL, or a PrimValue as appropriate to PrimArray subclass. |
protected void |
subtractData(int myStart,
PrimDataArray other,
int otherStart,
int count)
Subtract the respective elements of other from this over the given index range. |
| Methods inherited from class org.abora.gold.collection.basic.PrimDataArray |
addElements, addElements, addElements, compare, compare, compare, compare, contentsEqual, elementsEqual, subtractElements, subtractElements, subtractElements |
| Methods inherited from class org.abora.gold.collection.basic.PrimArray |
cleanup, contentsHash, copy, copy, copy, copy, copy, copyElements, copyGrow, copyToBuffer, copyToBuffer, count, elementsEqual, elementsEqual, elementsHash, elementsHash, getValue, indexOf, indexOf, indexOfElements, indexOfElements, indexOfElements, indexOfElements, indexOfElements, indexPast, indexPast, moveTo, outOfBounds, printElementOn, printOn, rangeCheck, size, storage, storeAll, storeAll, storeAll, storeMany, storeMany, storeMany, zeroElements, zeroElements, zeroElements |
| 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 |
| Constructor Detail |
protected PrimIntegerArray(int count,
int datumSize)
count - datumSize - | Method Detail |
public PrimIntegerArray hold(int index,
IntegerVar value,
boolean canModify)
public PrimIntegerArray hold(int index,
IntegerVar value)
public void storeInteger(int index,
IntegerVar value)
public IntegerVar integerAt(int index)
public void storeValue(int index,
Heaper value)
PrimArray
storeValue in class PrimDataArraypublic Heaper fetchValue(int index)
PrimArray
fetchValue in class PrimDataArraypublic PrimSpec spec()
PrimArray
spec in class PrimDataArray
public int elementsHash(int count,
int start)
PrimDataArray
elementsHash in class PrimDataArray
public int indexOf(Heaper value,
int start,
int n)
PrimArray
indexOf in class PrimDataArray
public int indexOfInteger(IntegerVar value,
int start,
int count)
public int indexOfInteger(IntegerVar value,
int start)
public int indexOfInteger(IntegerVar value)
public int indexPast(Heaper value,
int start,
int n)
PrimArray
indexPast in class PrimDataArray
public int indexPastInteger(IntegerVar value,
int start,
int count)
public int indexPastInteger(IntegerVar value,
int start)
public int indexPastInteger(IntegerVar value)
public void storeAll(Heaper value,
int count,
int start)
PrimArray
storeAll in class PrimDataArray
public void copyToBuffer(int[] buffer,
int size,
int count,
int start)
PrimArray
copyToBuffer in class PrimDataArray
protected int compareData(int myStart,
PrimDataArray other,
int otherStart,
int count)
PrimDataArray
compareData in class PrimDataArrayprotected int signOfNonZeroAfter(int start)
PrimDataArray
signOfNonZeroAfter in class PrimDataArray
protected void addData(int myStart,
PrimDataArray other,
int otherStart,
int count)
PrimDataArray
addData in class PrimDataArray
protected void subtractData(int myStart,
PrimDataArray other,
int otherStart,
int count)
PrimDataArray
subtractData in class PrimDataArray
protected void printElementOn(int index,
Stream oo)
printElementOn in class PrimDataArray
protected PrimArray makeNew(int size,
PrimArray source,
int sourceOffset,
int count,
int destOffset)
makeNew in class PrimDataArray
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||