CHashTable 1
Loading...
Searching...
No Matches
Hash Table

Public API for the HashTable struct. More...

Data Structures

struct  entry
 A hash table entry object. More...
 

Typedefs

typedef struct entry Entry
 A hash table entry object.
 
typedef struct hash_table HashTable
 An opaque handle to a hash table object.
 

Enumerations

enum  HashTable_LoadError {
  HT_LOAD_OK = 0 , HT_LOAD_ERROR_FILE_OPEN , HT_LOAD_ERROR_EMPTY , HT_LOAD_ERROR_INVALID_HEADER ,
  HT_LOAD_ERROR_MISSING_COUNT , HT_LOAD_ERROR_MALFORMED_COUNT , HT_LOAD_ERROR_ALLOC_FAILED , HT_LOAD_ERROR_PREMATURE_EOF ,
  HT_LOAD_ERROR_MALFORMED_LINE
}
 Error codes for the hash_table_load function.
 

Detailed Description

Public API for the HashTable struct.

Typedef Documentation

◆ Entry

typedef struct entry Entry

A hash table entry object.

Holds a key-value pair

◆ HashTable

typedef struct hash_table HashTable
related

An opaque handle to a hash table object.

This is the public-facing type. All functions in this API (like hash_table_create(), hash_table_insert(), etc.) operate on a pointer to this type (HashTable*).

The internal structure is hidden from the user.