int SDTHashmap_put(SDTHashmap *x, char *key, void *value)
Inserts a key/value pair in the hashmap.
struct SDTHashmap SDTHashmap
Opaque data structure for a hashmap object.
Definition: SDTStructs.h:13
SDTHashmap * SDTHashmap_new(int size)
Object constructor.
void * SDTHashmap_get(SDTHashmap *x, char *key)
Looks for an entry with the given key in the hashmap.
void SDTHashmap_free(SDTHashmap *x)
Object destructor.
int SDTHashmap_del(SDTHashmap *x, char *key)
Deletes a key/value pair from the hashmap.
void SDTHashmap_clear(SDTHashmap *x)
Deletes all the entries in the hashmap.