parrotcode: GDBM PMC | |
Contents | Dynamic PMCs |
src/dynpmc/gdbmhash.pmc - GDBM PMC
This is an interface to the GNU dbm library.
On inserted and fetch, keys are converted to STRINGs.
PMC insert values are converted to STRINGs.
get_integer_keyed() and get_number_keyed() probably don't make any sense, as integers usually can't be converted.
When a PMC is requested, a String PMC is returned.
static STRING *make_hash_key(PARROT_INTERP, PMC *key)
*key
.void class_init()
VOID set_string_native(STRING *value)
INTVAL get_integer()
INTVAL get_bool()
void set_string_keyed(PMC *key, STRING *value)
STRING *get_string_keyed(PMC *key)
*key
.void set_pmc_keyed(PMC *key, PMC *value)
value
to a string and set the string for the key
.PMC *get_pmc_keyed(PMC *key)
*key
.void set_integer_keyed(PMC *key, INTVAL value)
value
to a string and set the string for the key
.void set_number_keyed(PMC *key, FLOATVAL value)
value
to a string and set the string for the key
.INTVAL exists_keyed(PMC *key)
*key
exists in the hash.void delete_keyed(PMC *key)
*key
.docs/pdds/pdd08_keys.pod, http://gdbm.gnu.org
|