22 #ifndef REGIFY_UTIL_MAP_H
23 #define REGIFY_UTIL_MAP_H
75 #define ruMapPut(map, key, val) ruMapPutData(map, (ptr)(key), (ptr)(val), NULL)
88 #define ruMapTryPut(map, key, val, existing) ruMapPutData(map, (ptr)(key), (ptr)(val), (ptr*)(existing))
110 #define ruMapRemove(rm, key, val) ruMapRemoveData(rm, (trans_ptr)(key), (ptr*)(val))
134 #define ruMapGet(rm, key, val) ruMapGetValue(rm, (trans_ptr)(key), (ptr*)(val))
156 #define ruMapHas(rm, key, code) ruMapHasKey(rm, (trans_ptr)(key), code)
194 #define ruMapFirst(rm, key, value) ruMapFirstSet(rm, (ptr*)(key), (ptr*)(value))
215 #define ruMapNext(rm, key, value) ruMapNextSet(rm, (ptr*)(key), (ptr*)(value))
280 #define ruSetPut(rs, item) ruSetPutItem(rs, (ptr)(item))
300 #define ruSetRemove(rs, item) ruSetRemoveItem(rs, (ptr)(item))
322 #define ruSetHas(rs, item, code) ruSetHasItem(rs, (trans_ptr)(item), code)
356 #define ruSetFirst(rs, item) ruSetFirstSet(rs, (ptr*)(item))
375 #define ruSetNext(rs, item) ruSetNextSet(rs, (ptr*)(item))
RUAPI int32_t ruMapPutData(ruMap rm, ptr key, ptr val, ptr *exisitingVal)
Insert a key/val pair into the map.
RUAPI int32_t ruMapNextSet(ruMap rm, ptr *key, ptr *value)
Retrieves the next key/value pair from the map.
RUAPI int32_t ruMapFirstSet(ruMap rm, ptr *key, ptr *value)
Initializes a map iterator and populates given parameters with the first key pair to serve as a for l...
RUAPI ruMap ruMapNew(ruType keyType, ruType valueType)
Creates a new ruMap based on the given specifications.
RUAPI ruMap ruMapFree(ruMap rm)
Frees the given map and its members.
RUAPI uint32_t ruMapSize(ruMap rm, int32_t *code)
Returns the size of the map.
RUAPI int32_t ruMapKeyList(ruMap rm, ruList *keys)
Return a key list of the given map.
RUAPI int32_t ruMapRemoveData(ruMap rm, trans_ptr key, ptr *val)
Removes an entry from the map.
RUAPI int32_t ruMapGetValue(ruMap rm, trans_ptr key, ptr *val)
Retrieves an pointer entry from the map.
RUAPI int32_t ruMapRemoveAll(ruMap rm)
Removes all entries from the map.
void * ruMap
An opaque type representing a map object.
Definition: map.h:33
RUAPI bool ruMapHasKey(ruMap rm, trans_ptr key, int32_t *code)
Tests whether map has an entry for given key.
RUAPI uint32_t ruSetSize(ruSet rs, int32_t *code)
Returns the size of the set.
RUAPI bool ruSetHasItem(ruSet rs, trans_ptr item, int32_t *code)
Tests whether set contains given item.
RUAPI int32_t ruSetRemoveAll(ruSet rs)
Removes all items from the set.
RUAPI int32_t ruSetNextSet(ruSet rs, ptr *item)
Retrieves the next item from the set.
RUAPI int32_t ruSetItemList(ruSet rs, ruList *items)
Return an item list of the given set.
RUAPI ruSet ruSetFree(ruSet rs)
Frees the given set and its members.
RUAPI int32_t ruSetPutItem(ruSet rs, ptr item)
Insert an item into the set.
RUAPI ruSet ruSetNew(ruType keyType)
Creates a new ruSet based on the given specifications.
void * ruSet
An opaque type representing a set object.
Definition: map.h:247
RUAPI int32_t ruSetFirstSet(ruSet rs, ptr *item)
Initializes a set iterator and populates given parameter with the first item to serve as a for loop i...
RUAPI int32_t ruSetRemoveItem(ruMap rs, ptr item)
Removes an entry from the map.
void * ruList
Opaque pointer to list object. See List Collection.
Definition: list.h:103
const void * trans_ptr
A transient pointer.
Definition: regify-util.h:287
void * ptr
A generic pointer.
Definition: regify-util.h:304
void * ruType
An opaque type representing a type specification.
Definition: regify-util.h:344