-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddress.h
31 lines (23 loc) · 821 Bytes
/
Address.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
28
29
30
31
#ifndef Address_H_
#define Address_H_
#include <string>
class Address {
private:
int pageNumber;
bool dirty;
int processId;
public:
Address(int processId, int pageNumber, bool dirty);
Address() {};
Address(const Address& address);
~Address() {}
bool getDirty() const { return dirty; }
int getPageNumber() const { return pageNumber; }
int getProcessId() const { return processId; }
void setDirty(const bool dirty) { this->dirty = dirty; }
bool operator == (const Address& address) const;
Address& operator = (const Address& address);
friend std::ostream &operator<<(std::ostream& left, const Address& ob);
void print();
};
#endif //Address_h