-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlevel.h
27 lines (20 loc) · 845 Bytes
/
level.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef LEVEL
#define LEVEL
#include <stdlib.h>
#include "Map.h"
#include <math.h>
class PageTable; // defines PageTable for compiler
class Level
{
public:
Level(); // default constructor
Level(int, PageTable*); // overloaded constructor
Level** nextLevel; // double pointer enables arr of Level* ptrs
Map* mapPtr; // single pointer so arr of Map objects
unsigned int currDepth; // depth of this Level. Referenced in main
PageTable* pTable; // pointer to PageTable object that contains the levels and info about masks and levels
void setNextLevel(); // assigns nextLevel to arr of Level* ptrs
void setNextLevelNull(); // instantiates each element of nextLevel to NULL
void setMapPtr(); // assigns mapPtr to arr of Map objects
};
#endif