SwatDB
Loading...
Searching...
No Matches
hashdirpage.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_HASHDIRPAGE_H_
11#define _SWATDB_HASHDIRPAGE_H_
12
17#include <cstddef>
18#include "swatdb_types.h"
19#include "page.h"
20
21
25class HashDirPage;
26
27
33class HashDirPage : public Page {
34
35 public:
36
45 HashDirPage() = delete;
46
51
64 void setEntry(SlotId slot_id, PageNum page_num);
65
78 PageNum getEntry(SlotId slot_id);
79
80};
81
82#endif
Definition hashdirpage.h:33
void setEntry(SlotId slot_id, PageNum page_num)
Setter function for an entry identified by SlotId.
HashDirPage()=delete
Constructor.
~HashDirPage()
Definition hashdirpage.h:50
PageNum getEntry(SlotId slot_id)
Getter function for retrieving PageNum entry identified by SlotId.
Definition page.h:27
std::uint32_t PageNum
Definition swatdb_types.h:38