Classes | Macros | Typedefs | Functions
thash_impl.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
Include dependency graph for thash_impl.h:

Go to the source code of this file.

Classes

struct  TTYPENAME
 

Macros

#define str(s)   strr(s)
 
#define strr(s)   #s
 
#define TFN(suffix)   TRFN(TNAME, suffix)
 
#define THASH_FACTOR_CRITICAL   2
 
#define THASH_FACTOR_REALLOC   4
 
#define TRFN(root, suffix)   TRRFN(root, suffix)
 
#define TRRFN(root, suffix)   root ## _ ## suffix
 
#define TTYPENAME   TFN(t)
 

Typedefs

typedef struct TTYPENAME TTYPENAME
 

Functions

static void TFN() clear (TTYPENAME *hash)
 
static TTYPENAME *TFN() copy (TTYPENAME *hash)
 
static TTYPENAME *TFN() create ()
 
static TTYPENAME *TFN() create_capacity (int capacity)
 
static void TFN() destroy (TTYPENAME *hash)
 
static int TFN() get (TTYPENAME *hash, TKEYTYPE *key, TVALTYPE *value)
 
static int TFN() get_volatile (TTYPENAME *hash, TKEYTYPE *key, TVALTYPE **value)
 
static void TFN() iterator_init (TTYPENAME *hash, TFN(iterator_t)*iter)
 
static int TFN() iterator_next (TFN(iterator_t)*iter, TKEYTYPE *outkey, TVALTYPE *outval)
 
static void TFN() iterator_remove (TFN(iterator_t)*iter)
 
static void TFN() performance (TTYPENAME *hash)
 
static int TFN() put (TTYPENAME *hash, TKEYTYPE *key, TVALTYPE *value, TKEYTYPE *oldkey, TVALTYPE *oldvalue)
 
static int TFN() remove (TTYPENAME *hash, TKEYTYPE *key, TKEYTYPE *oldkey, TVALTYPE *oldvalue)
 
static int TFN() size (TTYPENAME *hash)
 
struct TFN (_entry)
 
struct TFN (iterator) TFN(iterator_t)
 

Macro Definition Documentation

#define str (   s)    strr(s)
#define strr (   s)    #s
#define TFN (   suffix)    TRFN(TNAME, suffix)

Definition at line 79 of file thash_impl.h.

#define THASH_FACTOR_CRITICAL   2

Definition at line 71 of file thash_impl.h.

#define THASH_FACTOR_REALLOC   4

Definition at line 75 of file thash_impl.h.

#define TRFN (   root,
  suffix 
)    TRRFN(root, suffix)

Definition at line 78 of file thash_impl.h.

#define TRRFN (   root,
  suffix 
)    root ## _ ## suffix

Definition at line 77 of file thash_impl.h.

#define TTYPENAME   TFN(t)

Definition at line 81 of file thash_impl.h.

Typedef Documentation

typedef struct TTYPENAME TTYPENAME

Definition at line 92 of file thash_impl.h.

Function Documentation

static void TFN() clear ( TTYPENAME hash)
inlinestatic

Definition at line 143 of file thash_impl.h.

static TTYPENAME* TFN() copy ( TTYPENAME hash)
inlinestatic

Definition at line 322 of file thash_impl.h.

static TTYPENAME* TFN() create ( )
inlinestatic

Definition at line 124 of file thash_impl.h.

static TTYPENAME* TFN() create_capacity ( int  capacity)
inlinestatic

Definition at line 102 of file thash_impl.h.

static void TFN() destroy ( TTYPENAME hash)
inlinestatic

Definition at line 129 of file thash_impl.h.

static int TFN() get ( TTYPENAME hash,
TKEYTYPE *  key,
TVALTYPE *  value 
)
inlinestatic

Definition at line 209 of file thash_impl.h.

static int TFN() get_volatile ( TTYPENAME hash,
TKEYTYPE *  key,
TVALTYPE **  value 
)
inlinestatic

Definition at line 192 of file thash_impl.h.

static void TFN() iterator_init ( TTYPENAME hash,
TFN(iterator_t)*  iter 
)
inlinestatic

Definition at line 343 of file thash_impl.h.

static int TFN() iterator_next ( TFN(iterator_t)*  iter,
TKEYTYPE *  outkey,
TVALTYPE *  outval 
)
inlinestatic

Definition at line 349 of file thash_impl.h.

static void TFN() iterator_remove ( TFN(iterator_t)*  iter)
inlinestatic

Definition at line 369 of file thash_impl.h.

static void TFN() performance ( TTYPENAME hash)
inlinestatic

Definition at line 151 of file thash_impl.h.

static int TFN() put ( TTYPENAME hash,
TKEYTYPE *  key,
TVALTYPE *  value,
TKEYTYPE *  oldkey,
TVALTYPE *  oldvalue 
)
inlinestatic

Definition at line 229 of file thash_impl.h.

static int TFN() remove ( TTYPENAME hash,
TKEYTYPE *  key,
TKEYTYPE *  oldkey,
TVALTYPE *  oldvalue 
)
inlinestatic

Definition at line 282 of file thash_impl.h.

static int TFN() size ( TTYPENAME hash)
inlinestatic

Definition at line 138 of file thash_impl.h.

struct TFN ( _entry  )

Definition at line 83 of file thash_impl.h.

struct TFN ( iterator  )

Definition at line 337 of file thash_impl.h.



apriltags2
Author(s): Danylo Malyuta
autogenerated on Fri Oct 19 2018 04:02:33