|
||||||||
| 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.PtrArray
| 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 |
PtrArray(int count,
int TCSJ)
|
protected |
PtrArray(int count,
int[] buffer)
|
protected |
PtrArray(int size,
PrimArray from,
int sourceOffset,
int count,
int destOffset)
|
| Method Summary | |
BooleanVar |
contentsEQ(PtrArray other)
|
BooleanVar |
contentsEqual(PrimArray other)
Whether the two ranges contain semantically the same values. |
int |
contentsHash()
A hash of the entire contents of the array. |
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. |
BooleanVar |
elementsEQ(int here,
PrimArray other)
|
BooleanVar |
elementsEQ(int here,
PrimArray other,
int there)
|
BooleanVar |
elementsEQ(int here,
PrimArray other,
int there,
int count)
|
BooleanVar |
elementsEqual(int here,
PrimArray other,
int there,
int count)
Whether the two ranges contain the same values, using the criteria defined in contentsEqual |
int |
elementsHash(int count,
int start)
A hash of the range of values out of the array. |
static PtrArray |
empty()
create a zero size PtrArray |
Heaper |
fetch(int index)
Retrieve a single element from the array. |
Heaper |
fetchValue(int index)
Fetch a value; may be a Heaper, NULL, or a PrimValue as appropriate to PrimArray subclass. |
Heaper |
get(int index)
Retrieve a single element from the array. |
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 |
indexOfEQ(Heaper value)
|
int |
indexOfEQ(Heaper value,
int start)
|
int |
indexOfEQ(Heaper value,
int start,
int n)
|
int |
indexOfEQOrNull(Heaper value)
|
int |
indexOfEQOrNull(Heaper value,
int start)
|
int |
indexOfEQOrNull(Heaper value,
int start,
int n)
|
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 |
indexPastEQ(Heaper value)
|
int |
indexPastEQ(Heaper value,
int start)
|
int |
indexPastEQ(Heaper value,
int start,
int n)
|
static PtrArray |
make(int count,
int[] buffer)
create a PtrArray filled with data from 'buffer' |
static PtrArray |
make(int size,
PrimArray from)
|
static PtrArray |
make(int size,
PrimArray from,
int sourceOffset)
|
static PtrArray |
make(int size,
PrimArray from,
int sourceOffset,
int count)
|
static PtrArray |
make(int size,
PrimArray from,
int sourceOffset,
int count,
int destOffset)
create a PtrArray filled with the indicated data in 'from' |
protected PrimArray |
makeNew(int size,
PrimArray source,
int sourceOffset,
int count,
int destOffset)
|
void |
migrate(int[] destination,
BooleanVar destinationIsOld)
|
static PtrArray |
nulls(int count)
create a PtrArray filled with NULLs |
protected void |
printElementOn(int index,
Stream oo)
|
PrimSpec |
spec()
A description of the kinds of things which can be stored in this array |
void |
store(int index,
Heaper pointer)
|
void |
storeAll(Heaper value,
int count,
int start)
Set a range of elements to have the same value |
void |
storeValue(int index,
Heaper value)
Store a value; may be a Heaper, NULL, or a PrimValue as appropriate to PrimArray subclass. |
Heaper |
unsafeFetch(int index)
for bulk methods that need checking and for migration |
void |
unsafeStore(int index,
Heaper ptr)
for bulk methods that need checking and for migration |
| Methods inherited from class org.abora.gold.collection.basic.PrimArray |
cleanup, 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 PtrArray(int count,
int TCSJ)
protected PtrArray(int size,
PrimArray from,
int sourceOffset,
int count,
int destOffset)
protected PtrArray(int count,
int[] buffer)
| Method Detail |
public static PtrArray nulls(int count)
public static PtrArray make(int size,
PrimArray from,
int sourceOffset,
int count,
int destOffset)
public static PtrArray make(int size,
PrimArray from,
int sourceOffset,
int count)
public static PtrArray make(int size,
PrimArray from,
int sourceOffset)
public static PtrArray make(int size,
PrimArray from)
public static PtrArray make(int count,
int[] buffer)
public static PtrArray empty()
public void store(int index,
Heaper pointer)
public Heaper get(int index)
public Heaper fetch(int index)
public void storeValue(int index,
Heaper value)
PrimArray
storeValue in class PrimArraypublic Heaper fetchValue(int index)
PrimArray
fetchValue in class PrimArraypublic PrimSpec spec()
PrimArray
spec in class PrimArraypublic BooleanVar contentsEQ(PtrArray other)
public BooleanVar contentsEqual(PrimArray other)
PrimArray
contentsEqual in class PrimArraypublic int contentsHash()
PrimArray
contentsHash in class PrimArray
public int indexOf(Heaper value,
int start,
int n)
PrimArray
indexOf in class PrimArray
public int indexPast(Heaper value,
int start,
int n)
PrimArray
indexPast in class PrimArray
public void storeAll(Heaper value,
int count,
int start)
PrimArray
storeAll in class PrimArray
public void copyToBuffer(int[] buffer,
int size,
int count,
int start)
PrimArray
copyToBuffer in class PrimArray
public int indexOfEQ(Heaper value,
int start,
int n)
public int indexOfEQ(Heaper value,
int start)
public int indexOfEQ(Heaper value)
public int indexOfEQOrNull(Heaper value,
int start,
int n)
public int indexOfEQOrNull(Heaper value,
int start)
public int indexOfEQOrNull(Heaper value)
public int indexPastEQ(Heaper value,
int start,
int n)
public int indexPastEQ(Heaper value,
int start)
public int indexPastEQ(Heaper value)
public BooleanVar elementsEQ(int here,
PrimArray other,
int there,
int count)
public BooleanVar elementsEQ(int here,
PrimArray other,
int there)
public BooleanVar elementsEQ(int here,
PrimArray other)
public BooleanVar elementsEqual(int here,
PrimArray other,
int there,
int count)
PrimArray
elementsEqual in class PrimArray
public int elementsHash(int count,
int start)
PrimArray
elementsHash in class PrimArray
protected void printElementOn(int index,
Stream oo)
protected PrimArray makeNew(int size,
PrimArray source,
int sourceOffset,
int count,
int destOffset)
makeNew in class PrimArray
public void unsafeStore(int index,
Heaper ptr)
public Heaper unsafeFetch(int index)
public void migrate(int[] destination,
BooleanVar destinationIsOld)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||