#include "common.h"
#include <sys/types.h>
#include "tmpl_common.h"
Include dependency graph for xhash_tmpl_h.inc:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | XHPFX XH_FUNC_PFX |
define a convenient abbreviation for the macro containing the current hash tables function name prefix. | |
Typedefs | |
typedef XH_TABLE_NAME * | XH_TABLE_NAME |
hide the data types true nature from the user. | |
Functions | |
XH_TABLE_NAME | xh_pfx_Init (const size_t size) |
initialises a new instance of a hash table object. More... | |
int | xh_pfx_Insert (XH_TABLE_NAME this, XH_KEY key, XH_CARGO new_load) |
inserts a new key / value pair into the table. More... | |
int | xh_pfx_Delete (XH_TABLE_NAME this, XH_KEY key) |
removes key / value pair from the table. More... | |
XH_CARGO | xh_pfx_Get (XH_TABLE_NAME this, const XH_KEY key) |
retrieves the data corresponding to a given key. More... | |
int | xh_pfx_Terminate (XH_TABLE_NAME this) |
frees all ressources and destroys the table object. More... |
Definition in file xhash_tmpl_h.inc.
|
removes key / value pair from the table.
<prefix>Delete removes data and its key from table.
|
|
retrieves the data corresponding to a given key.
<prefix>Get returns the data belonging to key.
|
|
initialises a new instance of a hash table object.
<prefix>Init initialises and returns a new instance of a hash table
|
|
inserts a new key / value pair into the table.
<prefix>Insert inserts new data associated with a keyinto the table. If there was any other value with the same key in the list before, it is replaced.
|
|
frees all ressources and destroys the table object.
<prefix>Terminate cleans up. The table object is invalid after a call of <prefix>Terminate.
|