SwatDB
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 };
char data[PAGE_SIZE]
char array that stores the page data. Derived classes could map appropriate structures on it...
Definition: page.h:58
~Page()
Destructor.
Definition: page.h:40
Page()
Constructor.
const std::uint32_t PAGE_SIZE
Definition: swatdb_types.h:129
char * getData()
Get function for the data char array.
Definition: diskmgr.h:36
Definition: page.h:25