#include <wvondisklist.h>
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. WvOnDiskAlloc uses Index # -1 itself as the beginning of the FREELIST. The others you can use as you wish.
Definition at line 23 of file wvondisklist.h.
Public Types | |
typedef int32_t | Index |
typedef WvOnDiskHash< Index, WvBuf, Backend > | LinkHash |
enum | { FREELIST = -1 } |
Public Member Functions | |
WvOnDiskAlloc (WvStringParm filename) | |
void | zap () |
Index | alloc () |
void | unalloc (Index i) |
Public Attributes | |
LinkHash | hash |