hash.h File Reference

Go to the source code of this file.

Classes

struct  Hash
struct  Hash::_ht
struct  HashElem

Defines

#define sqliteHashFirst(H)   ((H)->first)
#define sqliteHashNext(E)   ((E)->next)
#define sqliteHashData(E)   ((E)->data)
#define sqliteHashKey(E)   ((E)->pKey)
#define sqliteHashKeysize(E)   ((E)->nKey)
#define sqliteHashCount(H)   ((H)->count)

Typedefs

typedef struct Hash Hash
typedef struct HashElem HashElem

Functions

void sqlite3HashInit (Hash *, int copyKey)
void * sqlite3HashInsert (Hash *, const void *pKey, int nKey, void *pData)
void * sqlite3HashFind (const Hash *, const void *pKey, int nKey)
HashElemsqlite3HashFindElem (const Hash *, const void *pKey, int nKey)
void sqlite3HashClear (Hash *)

Define Documentation

#define sqliteHashCount (  )     ((H)->count)

Definition at line 85 of file hash.h.

#define sqliteHashData (  )     ((E)->data)
#define sqliteHashFirst (  )     ((H)->first)
#define sqliteHashKey (  )     ((E)->pKey)

Definition at line 79 of file hash.h.

#define sqliteHashKeysize (  )     ((E)->nKey)

Definition at line 80 of file hash.h.

#define sqliteHashNext (  )     ((E)->next)

Typedef Documentation

typedef struct Hash Hash

Definition at line 21 of file hash.h.

typedef struct HashElem HashElem

Definition at line 22 of file hash.h.


Function Documentation

void sqlite3HashClear ( Hash  ) 
void* sqlite3HashFind ( const Hash ,
const void *  pKey,
int  nKey 
)
HashElem* sqlite3HashFindElem ( const Hash ,
const void *  pKey,
int  nKey 
)

Definition at line 209 of file hash.c.

References findElementGivenHash(), Hash::ht, Hash::htsize, and strHash().

Referenced by sqlite3HashFind().

void sqlite3HashInit ( Hash ,
int  copyKey 
)

Definition at line 27 of file hash.c.

References Hash::copyKey, Hash::count, Hash::first, Hash::ht, and Hash::htsize.

Referenced by openDatabase(), sqlite3SchemaFree(), and sqlite3SchemaGet().

void* sqlite3HashInsert ( Hash ,
const void *  pKey,
int  nKey,
void *  pData 
)

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:59 2011 by Doxygen 1.6.1