Tools.h++ Manual
104011 Tandem Computers Incorporated 21-49
21
Public member functions
virtual RWHandle allocate() = 0;
It is the responsibility of the specializing class to supply a definition for this
pure virtual function. The specializing class should allocate a page and return
a unique handle for it. It should return zero if it cannot satisfy the request.
The size of the page is set by the constructor.
virtual ~RWBufferedPageHeap();
Deallocates all internal buffers.
RWBoolean isValid();
Returns
TRUE
if self is in a valid state. A possible reason why the object might
not be valid is insufficient memory to allocate the internal buffers.
virtual void deallocate(RWHandle h);
Redefined from class
RWVirtualPageHeap
. It is never an error to call this
function with argument zero. Even though this is not a pure virtual function,
it is the responsibility of the specializing class to supply an appropriate
definition for this function. All this definition does is release any buffers
associated with the handle
h
. Just as the actual page allocation is done by the
specializing class through virtual function
allocate()
, so must the actual
deallocation be done by overriding
deallocate()
.
virtual void dirty(RWHandle h);
Redefined from class
RWVirtualPageHeap
.
virtual void* lock(RWHandle h);
Redefined from class
RWVirtualPageHeap
.
virtual void unlock(RWHandle h);
Redefined from class
RWVirtualPageHeap
.