SwatDB
include
page.h
Go to the documentation of this file.
1
/*
2
* SwatDB
3
*
4
* @authors: See Contributors.doc for code contributors
5
*
6
* Copyright (c) 2020 Swarthmore College Computer Science Department
7
* Swarthmore PA, Professors Tia Newhall, Ameet Soni
8
*/
9
10
#pragma once
11
16
#include <cstddef>
17
#include "
swatdb_types.h
"
18
25
class
alignas
(16)
Page
{
26
27
friend
class
DiskManager
;
28
29
public
:
30
34
Page
();
35
40
~Page
() { }
41
50
char
*
getData
();
51
52
protected
:
53
58
char
data
[
PAGE_SIZE
];
59
};
Page::data
char data[PAGE_SIZE]
char array that stores the page data. Derived classes could map appropriate structures on it...
Definition:
page.h:58
Page::~Page
~Page()
Destructor.
Definition:
page.h:40
Page::Page
Page()
Constructor.
PAGE_SIZE
const std::uint32_t PAGE_SIZE
Definition:
swatdb_types.h:129
swatdb_types.h
Page::getData
char * getData()
Get function for the data char array.
DiskManager
Definition:
diskmgr.h:36
Page
Definition:
page.h:25
Generated by
1.8.13