LuaHashMap  1.0.0
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Functions
Clear family of functions

Functions

void LuaHashMap_Clear (LuaHashMap *hash_map)
 Removes all entries from the hash table, but doesn't shrink the hash.
 
void LuaHashMap_Purge (LuaHashMap *hash_map)
 Removes all entries from the hash table and resets the hash size to 0 (reclaims memory) This removes all entries from the hash table and resets the hash size to 0 (reclaims memory).
 
bool LuaHashMap_IsEmpty (LuaHashMap *hash_map)
 Returns whether the hash table is empty or or not.
 

Detailed Description

Function Documentation

void LuaHashMap_Clear ( LuaHashMap hash_map)

Removes all entries from the hash table, but doesn't shrink the hash.

This removes all entries from the hash table, but it doesn't shrink the hash (doesn't reclaim memory).

Parameters
hash_mapThe LuaHashMap instance to operate on.
bool LuaHashMap_IsEmpty ( LuaHashMap hash_map)

Returns whether the hash table is empty or or not.

Returns whether the hash table is empty or or not.

Parameters
hash_mapThe LuaHashMap instance to operate on.
Returns
Returns true if the hash table is empty, otherwise false.
void LuaHashMap_Purge ( LuaHashMap hash_map)

Removes all entries from the hash table and resets the hash size to 0 (reclaims memory) This removes all entries from the hash table and resets the hash size to 0 (reclaims memory).

Parameters
hash_mapThe LuaHashMap instance to operate on.