Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

WvOnDiskAlloc< Backend > Class Template Reference

#include <wvondisklist.h>

List of all members.


Detailed Description

template<class Backend>
class WvOnDiskAlloc< Backend >

A class based on WvOnDiskHash that lets you store WvBufs and auto-assign them Index values as keys.

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.


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


The documentation for this class was generated from the following file:
Generated on Sun Jul 10 16:29:27 2005 for WvStreams by  doxygen 1.4.0