| parrotcode: resizable array for PMCs only | |
| Contents | PMCs |

classes/resizablepmcarray.pmc - resizable array for PMCs only

This class, ResizablePMCArray, implements an resizable array, which stores PMCs. It puts things into Integer, Float, or String PMCs as appropriate.

void set_integer_native(INTVAL size)size elements.PMC *shift_pmc()PMC *get_pmc_keyed_int(INTVAL key)key.void set_pmc_keyed_int(INTVAL key, PMC *src)key to *src.void set_pmc_keyed(PMC *key, PMC *src)void push_pmc (PMC *value)*value to the end of the array.void push_integer(INTVAL value)void push_string(INTVAL value)*value to the end of the array.void unshift_pmc (PMC *value)*value to the begin of the array.PMC *clone()INTVAL is_equal (PMC *value)== operation.
Compares two array to hold equal elements.
docs/pdds/pdd17_basic_types.pod.

Initial version - Matt Fowles 2004-06-11 Changed allocator to double size - Matt Fowles 2004-06-15
|
|
|