Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWDiskPageHeap (deprecated)

Module:  Essential Tools Module   Group:  File System Classes


RWDiskPageHeapRWBufferedPageHeapRWVirtualPageHeap

Local Index

Members

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.


NOTE -- RWDiskPageHeap is deprecated.

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.

Program output:

Public Constructor

RWDiskPageHeap(const char* filename = 0,
               unsigned nbufs       = 10,
               unsigned pgsize      = 512);

Public Destructor

virtual 
~RWDiskPageHeap();

Public Member Functions

virtual RWHandle
allocate();
virtual void
deallocate(RWHandle h);
virtual void
dirty(RWHandle h);
bool
isValid() const;
virtual void*
lock(RWHandle h);
virtual void
unlock(RWHandle h);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.