Construction – HP Integrity NonStop J-Series User Manual
Page 95
Advertising

Click on the banner to return to the user guide home page.
©Copyright 1996 Rogue Wave Software
Construction
An
RWBTreeOnDisk
is always constructed from an
RWFileManager
. If the RWFileManager
is managing a new file, then the RWBTreeOnDisk will initialize it with an empty root node. For
example, the following code fragment constructs an RWFileManager for a new file called
filename.dat and then constructs an RWBTreeOnDisk from it:
#include <rw/disktree.h>
#include <rw/filemgr.h>
main(){
RWFileManager fm("filename.dat");
// Initializes filename.dat with an empty root:
RWBTreeOnDisk bt(fm);
}
Advertising
This manual is related to the following products: