#include <wvgdbmlist.h>
Collaboration diagram for WvGdbmAlloc:
This is convenient for implementing various data structures in the on-disk hash, since you can use Index values wherever an in-memory structure would use a pointer.
NOTE: Index values <= 0 have a special meaning, and will never be assigned automatically. WvGdbmAlloc uses Index # -1 itself as the beginning of the FREELIST. The others you can use as you wish.
Definition at line 22 of file wvgdbmlist.h.
Public Types | |
typedef int32_t | Index |
typedef WvGdbmHash< Index, WvBuf > | LinkHash |
enum | { FREELIST = -1 } |
Public Member Functions | |
WvGdbmAlloc (WvStringParm filename) | |
void | zap () |
Index | alloc () |
void | unalloc (Index i) |
Public Attributes | |
LinkHash | hash |
|
Definition at line 27 of file wvgdbmlist.h. |
|
Definition at line 28 of file wvgdbmlist.h. |
|
Definition at line 25 of file wvgdbmlist.h. |
|
Definition at line 32 of file wvgdbmlist.h. References WvStringParm. |
|
Definition at line 58 of file wvgdbmlist.h. References WvGdbmHash< K, D >::exists(). Referenced by WvGdbmList< T >::add_after(). |
|
Definition at line 73 of file wvgdbmlist.h. Referenced by WvGdbmList< T >::unlink_after(). |
|
Definition at line 52 of file wvgdbmlist.h. References WvGdbmHashBase::zap(). Referenced by WvGdbmList< T >::zap(). |
|
Definition at line 30 of file wvgdbmlist.h. |