Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

hash.h File Reference

#include "stmt/statement.h"
#include "timerange.h"

Include dependency graph for hash.h:

Go to the source code of this file.

Data Structures

struct  TKey
 define TKey and manipulations with it note: 'k' is a pointer to TKey More...
union  TValue

Defines

#define equalkey(k1, k2)   ( !node_compare(&(k1)->node, &(k2)->node) )
#define isnilkey(k)   ((k)->isnil)
#define isnilvalue(v)   ( (v)->up == NULL )
#define key2int(k)   ((unsigned int)(unsigned long)((k)->node.literal) )
#define setkey(k, n)   (k)->isnil = 0; (k)->node = (n)
#define setnilkey(k)   (k)->isnil = 1
#define setnilvalue(v)   ((v)->up = NULL)

Typedefs

typedef _HashTable HashTable
typedef safe_table safe_table
 define TValue and manipulations with it note: 'v' is a pointer to TValue

Functions

void hash_free (HashTable *t)
const TValuehash_get (HashTable *t, const TKey *key)
HashTablehash_new (int hashsize)
int hash_next (HashTable *t, TKey **key, TValue **value)
TValuehash_set (HashTable *t, const TKey *key)


Define Documentation

#define equalkey k1,
k2   )     ( !node_compare(&(k1)->node, &(k2)->node) )
 

#define isnilkey  )     ((k)->isnil)
 

#define isnilvalue  )     ( (v)->up == NULL )
 

#define key2int  )     ((unsigned int)(unsigned long)((k)->node.literal) )
 

#define setkey k,
 )     (k)->isnil = 0; (k)->node = (n)
 

#define setnilkey  )     (k)->isnil = 1
 

#define setnilvalue  )     ((v)->up = NULL)
 


Typedef Documentation

typedef struct _HashTable HashTable
 

typedef struct safe_table safe_table
 

define TValue and manipulations with it note: 'v' is a pointer to TValue


Function Documentation

void hash_free HashTable t  ) 
 

const TValue* hash_get HashTable t,
const TKey key
 

HashTable* hash_new int  hashsize  ) 
 

int hash_next HashTable t,
TKey **  key,
TValue **  value
 

TValue* hash_set HashTable t,
const TKey key
 


Generated on Wed Dec 27 16:52:19 2006 for VRB Online Server by  doxygen 1.4.4