Hash table
-
struct CowlTable : public CowlObject
Hash table of CowlObject elements.
Public Functions
Public Static Functions
-
static inline ulib_uint cowl_table_count(CowlTable *table)
Returns the number of elements in the hash table.
- Parameters
table – The hash table.
- Returns
Number of elements in The hash table.
-
static inline CowlAny *cowl_table_get_value(CowlTable *table, CowlAny *key)
Returns the value associated with the specified key.
- Parameters
table – The hash table.
key – The key.
- Returns
Value associated with the key, or NULL if the key is not present.
-
cowl_table_empty()
Returns a retained hash table with no elements.
- Returns
[CowlTable*] Retained hash table, or NULL on error.
-
static inline ulib_uint cowl_table_count(CowlTable *table)