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