NAME

src/pmc/resizablebooleanarray.pmc - ResizableBooleanArray PMC

DESCRIPTION

The ResizableBooleanArray PMC implements an array of resizable size, which stores booleans. It uses the Boolean PMC for all conversions. The ResizableBooleanArray PMC extends the FixedBooleanArray PMC.

Functions

Methods

INTVAL get_integer_keyed_int(INTVAL key)
Returns the integer value of the element at index key.
void set_integer_keyed_int(INTVAL key, INTVAL value)
Sets the integer value of the element at index key to value.
void set_integer_native(INTVAL size)
Resizes the array to size elements.
void push_integer(INTVAL value)
Extends the array by adding an element of value value to the end.
void pop_integer(INTVAL value)
Removes and returns the last element.
void unshift_integer(INTVAL value)
Extends the array by adding an element of value value to the beginning.
void shift_integer(INTVAL value)
Removes and returns the first element.
INTVAL elements()
INTVAL get_integer()
Returns the number of elements in the array.
PMC *clone()
Returns a copy of the array.

Freeze/thaw Interface

void freeze(PMC *info)
Used to archive the string.
void thaw(PMC *info)
Used to unarchive the string.

SEE ALSO

docs/pdds/pdd17_basic_types.pod.