SwatDB
Public Member Functions | Protected Attributes | Friends | List of all members
Page Class Reference

#include <page.h>

Inheritance diagram for Page:
Inheritance graph
[legend]

Public Member Functions

 Page ()
 Constructor.
 
 ~Page ()
 Destructor.
 
char * getData ()
 Get function for the data char array. More...
 

Protected Attributes

char data [PAGE_SIZE]
 char array that stores the page data. Derived classes could map appropriate structures on it.
 

Friends

class DiskManager
 

Detailed Description

SwatDB Page Class. Page is the basic unit of read/write operation on disk in the system. The data member is PAGE_SIZE char array, onto which other derived classes could map layer-specific structures and define access methods.

Member Function Documentation

◆ getData()

char* Page::getData ( )

Get function for the data char array.

Precondition
None.
Postcondition
char* to the data char array is returned.
Returns
char* to the data char array.

The documentation for this class was generated from the following file: