NAME ^

src/classes/floatval.pmc - Array of FLOATVALs

DESCRIPTION ^

FloatvalArray provides an floatval-only array.

Methods ^

void init()

Initializes the list.

PMC *clone()

Creates and returns a clone of the list.

void mark()

Marks the list as live.

void set_number_keyed_int(INTVAL key, FLOATVAL value)

Sets value at index key.

void set_number_keyed (PMC *key, FLOATVAL value)

Sets value at index *key.

FLOATVAL get_number()

Returns the number of elements in the list.

FLOATVAL get_number_keyed_int(INTVAL key)

Returns the value of the element at index key.

FLOATVAL get_number_keyed(PMC *key)

Returns the value of the element at index *key.

void push_float(FLOATVAL value)

Adds value to the end of the list.

FLOATVAL pop_float()

Removes and returns the last element in the list.

void unshift_float(FLOATVAL value)

Adds value to the start of the list.

FLOATVAL shift_float()

Removes and returns the first element in the list.


parrot