parrotcode: fixed size array for strings only | |
Contents | PMCs |
src/pmc/fixedstringarray.pmc - fixed size array for strings only
This class, FixedStringArray, implements an array of fixed size which stores Parrot strings.
void init()
void morph(INTVAL type)
morph()
.void destroy()
PMC *clone()
void mark()
INTVAL get_bool()
get_bool
will always return true once the array has been initialized and had its size set by set_integer_native
.INTVAL elements()
INTVAL get_integer()
INTVAL get_integer_keyed_int(INTVAL key)
key
.INTVAL get_integer_keyed(PMC *key)
*key
.FLOATVAL get_number_keyed_int(INTVAL key)
key
.FLOATVAL get_number_keyed(PMC *key)
*key
.STRING *get_string_keyed_int(INTVAL key)
key
.STRING *get_string_keyed(PMC *key)
*key
.PMC *get_pmc_keyed_int(INTVAL key)
key
.PMC *get_pmc_keyed(PMC *key)
*key
.void set_integer_native(INTVAL size)
size
elements.
Once the array has been given an initial size,
attempts to resize it will cause an exception to be thrown.void set_integer_keyed_int(INTVAL key, INTVAL value)
key
to value
.void set_integer_keyed(PMC *key, INTVAL value)
key
to value
.void set_number_keyed_int(INTVAL key, FLOATVAL value)
key
to value
.void set_number_keyed(PMC *key, FLOATVAL value)
key
to value
.void set_string_keyed_int(INTVAL key, STRING *value)
key
to value
.void set_string_keyed(PMC *key, STRING *value)
key
to value
.void set_pmc_keyed_int(INTVAL key, PMC *src)
key
to *src
.void set_pmc_keyed(PMC *key, PMC *value)
key
to value
.void freeze(visit_info *info)
void thaw(visit_info *info)
docs/pdds/pdd17_basic_types.pod.
Initial version 2004.06.11 by Matt Fowles
|