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.

Definition at line 23 of file wvondisklist.h.


Public Types

enum  { FREELIST = -1 }
typedef int32_t Index
typedef WvOnDiskHash
< Index, WvBuf,
Backend > 
LinkHash

Public Member Functions

 WvOnDiskAlloc (WvStringParm filename)
void zap ()
Index alloc ()
void unalloc (Index i)

Public Attributes

LinkHash hash

Member Enumeration Documentation

template<class Backend>
anonymous enum

Enumerator:
FREELIST 

Definition at line 26 of file wvondisklist.h.


The documentation for this class was generated from the following file:
Generated on Fri Oct 5 18:20:40 2007 for WvStreams by  doxygen 1.5.3