28#ifndef RAVEOBJECT_HASHTABLE_H_
29#define RAVEOBJECT_HASHTABLE_H_
Implementation of a simple list.
Generic implementation of an object that is used within rave.
void RaveObjectHashTable_clear(RaveObjectHashTable_t *table)
Clears all entries in the table.
Definition raveobject_hashtable.c:423
int RaveObjectHashTable_size(RaveObjectHashTable_t *table)
Returns the number of items in this table.
Definition raveobject_hashtable.c:365
RaveList_t * RaveObjectHashTable_keys(RaveObjectHashTable_t *table)
Returns the keys for the table at the current state.
Definition raveobject_hashtable.c:430
void RaveObjectHashTable_destroyKeyList(RaveList_t *l)
Helper function to destroy the returned list of keys.
Definition raveobject_hashtable.c:471
RaveCoreObject * RaveObjectHashTable_remove(RaveObjectHashTable_t *table, const char *key)
Removes the item with the specified key and returns it.
Definition raveobject_hashtable.c:384
int RaveObjectHashTable_put(RaveObjectHashTable_t *table, const char *key, RaveCoreObject *obj)
Inserts a key - object binding in the table.
Definition raveobject_hashtable.c:305
RaveObjectList_t * RaveObjectHashTable_values(RaveObjectHashTable_t *table)
Returns the values for the table.
Definition raveobject_hashtable.c:452
int RaveObjectHashTable_exists(RaveObjectHashTable_t *table, const char *key)
Returns if the specified key exists or not.
Definition raveobject_hashtable.c:376
RaveCoreObject * RaveObjectHashTable_get(RaveObjectHashTable_t *table, const char *key)
Returns the object referred to by key.
Definition raveobject_hashtable.c:346
RaveCoreObjectType RaveObjectHashTable_TYPE
Type definition to use when creating a rave object.
Definition raveobject_hashtable.c:484
Implementation of a rave object list that ensures that the objects contained within the list are rele...
Represents a list.
Definition rave_list.c:36
Represents a hash table.
Definition raveobject_hashtable.c:45
Represents a list.
Definition raveobject_list.c:35
The basic raveobject that contains the header information for all rave objects.
Definition rave_object.h:42
The rave object type definition.
Definition rave_object.h:52