parrotcode: Perl Hash | |
Contents | PMCs |
classes/perlhash.pmc - Perl Hash
These are the vtable functions for the PerlHash base class
PerlHash values should probably only be allowed to be PMCs.
static void fromkeys(Interp *interpreter, PMC *self, PMC *keys, PMC *value)
static STRING *make_hash_key(Interp *interpreter, PMC *key)
*key
.void class_init()
void *invoke(void *next)
dict
object according to 2.1.
Built-in Functions.void init()
PerlUndef
if it doesn't already exist.void mark()
INTVAL type_keyed_str(STRING *key)
*key
.INTVAL type_keyed (PMC *key)
*key
.PMC *clone()
INTVAL get_integer()
INTVAL get_integer_keyed_str(STRING *key)
INTVAL get_integer_keyed_int(INTVAL key)
INTVAL get_integer_keyed(PMC *key)
*key
.FLOATVAL get_number_keyed_str(STRING *key)
FLOATVAL get_number_keyed_int(INTVAL key)
FLOATVAL get_number_keyed(PMC *key)
*key
.STRING *get_string()
STRING *get_string_keyed_str(STRING *key)
STRING *get_string_keyed_int(INTVAL key)
STRING *get_string_keyed(PMC *key)
*key
.INTVAL get_bool()
INTVAL elements()
PMC *get_pmc_keyed_str(STRING *key)
PMC *get_pmc_keyed_int(INTVAL key)
PMC *slice (PMC *key)
key
PMC *get_pmc_keyed(PMC *key)
*key
.INTVAL is_same(PMC *other)
*other
.void set_integer_keyed(PMC *key, INTVAL value)
void set_integer_keyed_str(STRING *key, INTVAL value)
void set_number_keyed (PMC *key, FLOATVAL value)
void set_number_keyed_str(STRING *key, FLOATVAL value)
value
as the value for *key
.void set_string_keyed(PMC *key, STRING *value)
void set_string_keyed_str(STRING *key, STRING *value)
void set_pmc_keyed(PMC *dest_key, PMC *value)
void set_pmc_keyed_str(STRING *key, PMC *value)
*value
as the value for *key
.INTVAL is_equal(PMC *value)
==
operation.INTVAL exists_keyed_str(STRING *key)
INTVAL exists_keyed(PMC *key)
*key
exists in the hash.INTVAL defined_keyed_str(STRING *key)
INTVAL defined_keyed(PMC *key)
*key
is defined.void delete_keyed_str(STRING *key)
void delete_keyed(PMC *key)
*key
.PMC *slice (PMC *key)
key
void visit(visit_info *info)
void freeze(visit_info *info)
void thaw(visit_info *info)
|