SwatDB
Loading...
Searching...
No Matches
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
#ifndef _SWATDB_PAGE_H_
11
#define _SWATDB_PAGE_H_
12
13
18
#include <cstddef>
19
#include "
swatdb_types.h
"
20
27
class
alignas
(16)
Page
{
28
29
friend
class
DiskManager
;
30
31
public
:
32
36
Page
();
37
42
~Page
() { }
43
52
char
*
getData
();
53
54
protected
:
55
60
char
data
[
PAGE_SIZE
];
61
};
62
63
#endif
DiskManager
Definition
diskmgr.h:38
Page
Definition
page.h:27
Page::~Page
~Page()
Destructor.
Definition
page.h:42
Page::getData
char * getData()
Get function for the data char array.
Page::Page
Page()
Constructor.
Page::data
char data[PAGE_SIZE]
char array that stores the page data. Derived classes could map appropriate structures on it.
Definition
page.h:60
swatdb_types.h
PAGE_SIZE
const std::uint32_t PAGE_SIZE
Definition
swatdb_types.h:258
Generated by
1.9.8