Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWDiskPageHeap
RWDiskPageHeap RWBufferedPageHeap RWVirtualPageHeap
Synopsis
Description
Persistence
Example
Public Constructor
Public Destructor
Public Member Functions
Synopsis
#include <rw/diskpage.h>
unsigned nbufs;
unsigned pagesize;
RWDiskPageHeap heap("filename", nbufs, pagesize) ;
Description
Class RWDiskPageHeap is a specializing type of buffered page heap. It swaps its pages to disk as
necessary.
Persistence
None
Example
In this example, 100 nodes of a linked list are created and strung together. The list is then walked,
confirming that it contains 100 nodes. Each node is a single page. The "pointer" to the next node
is actually the handle for the next page.