-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPage.cpp
More file actions
34 lines (29 loc) · 803 Bytes
/
Page.cpp
File metadata and controls
34 lines (29 loc) · 803 Bytes
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
28
29
30
31
32
33
34
#include <string>
#ifndef PAGE_CPP
#define PAGE_CPP
using namespace std;
/** @author Trent Holiday, Robert Howerton, Jared Baker
@date 12/01/2014
* Basic implementation of a virtual memory page.
*
* -- pageName : Char representing name of the page
* -- func getName() : Method to get the name of the Page.
* -- func setName(string) : Used to set the name of the Page.
* -- func isSet() : Helper method to check whether the Page has been given a value yet.
*
*/
class Page{
private:
char pageName;
public:
char getName(void) {
return pageName;
}
void setName(char name){
pageName = name;
}
bool isSet(void){
return pageName != '\0';
}
};
#endif