XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
fthash.h File Reference
#include <ft2build.h>
Include dependency graph for fthash.h:

Go to the source code of this file.

Classes

union  FT_Hashkey_
 
struct  FT_HashnodeRec_
 
struct  FT_HashRec_
 

Macros

#define ft_hash_num_free   ft_hash_str_free
 

Typedefs

typedef FT_BEGIN_HEADER union FT_Hashkey_ FT_Hashkey
 
typedef struct FT_HashnodeRec_ FT_HashnodeRec
 
typedef struct FT_HashnodeRec_FT_Hashnode
 
typedef FT_ULong(* FT_Hash_LookupFunc) (FT_Hashkey *key)
 
typedef FT_Bool(* FT_Hash_CompareFunc) (FT_Hashkey *a, FT_Hashkey *b)
 
typedef struct FT_HashRec_ FT_HashRec
 
typedef struct FT_HashRec_FT_Hash
 

Functions

FT_Error ft_hash_str_init (FT_Hash hash, FT_Memory memory)
 
FT_Error ft_hash_num_init (FT_Hash hash, FT_Memory memory)
 
void ft_hash_str_free (FT_Hash hash, FT_Memory memory)
 
FT_Error ft_hash_str_insert (const char *key, size_t data, FT_Hash hash, FT_Memory memory)
 
FT_Error ft_hash_num_insert (FT_Int num, size_t data, FT_Hash hash, FT_Memory memory)
 
size_tft_hash_str_lookup (const char *key, FT_Hash hash)
 
size_tft_hash_num_lookup (FT_Int num, FT_Hash hash)
 

Macro Definition Documentation

◆ ft_hash_num_free

#define ft_hash_num_free   ft_hash_str_free

Typedef Documentation

◆ FT_Hash

typedef struct FT_HashRec_* FT_Hash

◆ FT_Hash_CompareFunc

typedef FT_Bool(* FT_Hash_CompareFunc) (FT_Hashkey *a, FT_Hashkey *b)

◆ FT_Hash_LookupFunc

typedef FT_ULong(* FT_Hash_LookupFunc) (FT_Hashkey *key)

◆ FT_Hashkey

◆ FT_Hashnode

typedef struct FT_HashnodeRec_* FT_Hashnode

◆ FT_HashnodeRec

◆ FT_HashRec

typedef struct FT_HashRec_ FT_HashRec

Function Documentation

◆ ft_hash_num_init()

FT_Error ft_hash_num_init ( FT_Hash  hash,
FT_Memory  memory 
)

◆ ft_hash_num_insert()

FT_Error ft_hash_num_insert ( FT_Int  num,
size_t  data,
FT_Hash  hash,
FT_Memory  memory 
)

◆ ft_hash_num_lookup()

size_t * ft_hash_num_lookup ( FT_Int  num,
FT_Hash  hash 
)

◆ ft_hash_str_free()

void ft_hash_str_free ( FT_Hash  hash,
FT_Memory  memory 
)

◆ ft_hash_str_init()

FT_Error ft_hash_str_init ( FT_Hash  hash,
FT_Memory  memory 
)

◆ ft_hash_str_insert()

FT_Error ft_hash_str_insert ( const char *  key,
size_t  data,
FT_Hash  hash,
FT_Memory  memory 
)

◆ ft_hash_str_lookup()

size_t * ft_hash_str_lookup ( const char *  key,
FT_Hash  hash 
)