SwatDB
Loading...
Searching...
No Matches
heapfilescanner.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_HEAPFILESCANNER_H_
11#define _SWATDB_HEAPFILESCANNER_H_
12
13// @@@@ SWATDB_ASSIGNMENT: ADDTODODATE
14
15
20#include <string>
21#include <vector>
22#include <mutex>
23#include "swatdb_types.h"
24#include "file.h" //for inheritance
25
26class HeapPage;
27class HeapFile;
28class Record;
29class HeapPageScanner;
30
31// @@@@ SWATDB_ASSIGNMENT: NOTEMSG DO NOT modify this class other than adding
32// @@@@ SWATDB_ASSIGNMENT: NOTEMSG private helper methods for good design
125
126
127#endif
Definition bufmgr.h:121
Definition heapfilescanner.h:39
PageId cur_pid
Definition heapfilescanner.h:95
HeapFileScanner(HeapFile *file)
Constructor.
HeapPage * cur_page
Definition heapfilescanner.h:100
HeapPageScanner * scanner
Definition heapfilescanner.h:106
RecordId getNext(Record *record)
Returns RecordId of the next Record in the HeapFile and initializes the given Record object to the da...
BufferManager * buf_mgr
Definition heapfilescanner.h:90
bool end_of_full
Definition heapfilescanner.h:117
HeapFile * file
Definition heapfilescanner.h:111
~HeapFileScanner()
Destructor.
bool end_of_free
Definition heapfilescanner.h:123
Definition heapfile.h:76
Definition heappagescanner.h:33
Definition heappage.h:94
Definition record.h:34
Definition swatdb_types.h:54
Definition swatdb_types.h:70