parrotcode: Python tuple | |
Contents | Dynamic PMCs |
classes/pytuple.pmc - Python tuple
This class, PyTuple, implements an array of fixed size, which stores PMCs, it puts things into Integer, Float, or String PMCs as appropriate
void init()
void destroy()
PMC* "__new__"(PMC *class, PMC *value)
INTVAL get_bool()
INTVAL elements()
PMC *get_class()
INTVAL get_integer()
PMC *get_iter ()
PMC *get_pmc_keyed(PMC *key)
key
.PMC *get_pmc_keyed_int(INTVAL key)
key
.STRING *get_string()
INTVAL is_equal (PMC *value)
==
operation.
Compares two array to hold equal elements.INTVAL exists_keyed (PMC *value)
==
operation.
Compares two array to hold equal elements.void set_integer_keyed(PMC *key, INTVAL value)
key
to value
.void set_integer_native(INTVAL size)
size
elements.void set_number_keyed(PMC *key, INTVAL value)
key
to value
.void set_pmc_keyed_int(INTVAL key, PMC *src)
key
to *src
.void set_string_keyed_int(INTVAL key, STRING *value)
key
to value
.
|