parrotcode: resizable array for integers only | |
Contents | PMCs |
src/pmc/resizableintegerarray.pmc - resizable array for integers only
This class, ResizableIntegerArray, implements an array of resizable size, which stores INTVALs. It uses Integer PMCs for all of the conversions.
INTVAL get_integer_keyed_int(INTVAL key)
key
.void set_integer_keyed_int(INTVAL key, INTVAL value)
key
to value
.void set_integer_native(INTVAL size)
size
elements.void push_integer (INTVAL value)
value
to the end of the array.INTVAL pop_integer()
INTVAL shift_integer()
void unshift_integer(INTVAL value)
PMC *clone()
docs/pdds/pdd17_basic_types.pod.
Initial version - Matt Fowles 2004-06-11 Changed allocator to double size - Matt Fowles 2004-06-15 Added push_integer - Bernhard Schmalhofer 2004-10-17 moved available size to int_val2 - Matt Fowles 2005-07-22
|