SwatDB
Loading...
Searching...
No Matches
heappagescanner.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_HEAPPAGESCANNER_H_
11#define _SWATDB_HEAPPAGESCANNER_H_
12
13
18#include <cstddef>
19#include <mutex>
20#include "swatdb_types.h"
21#include "page.h"
22
23class Data;
24
28class HeapPage;
29
34
35 public:
36
47
52
65 SlotId getNext();
66
77
78 private:
79
85
89 SlotId cur_slot;
90
91};
92
93#endif
Definition data.h:26
Definition heappagescanner.h:33
SlotId cur_slot
Current slot being scanned.
Definition heappagescanner.h:89
HeapPage * page
Page to be scanned. The Page is pinned outside the scope of the scanner.
Definition heappagescanner.h:84
void reset(HeapPage *page)
Resets the scanner, so it could be used for another Page.
SlotId getNext()
Returns SlotId of the next valid slot.
HeapPageScanner(HeapPage *page)
Constructor.
~HeapPageScanner()
Destructor.
Definition heappage.h:94