-
Notifications
You must be signed in to change notification settings - Fork 0
/
MemBlock.hpp
30 lines (26 loc) · 1.2 KB
/
MemBlock.hpp
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
#ifndef MEMBLOCK_H
#define MEMBLOCK_H
class MemBlock
{
private:
long long int start_;
long long int end_;
long long int pid_;
long long int memory_chunk_;
bool active_;
public:
MemBlock(); // default constructor
MemBlock(const long long int &start, const long long int &end, const long long int &pid,
const long long int &memory_chunk, const bool active); // parameterized constructor
void setStart(const long long int &start); // set start range
void setEnd(const long long int &end); // set end range
void setMemoryChunk(const long long int &memory_chunk); // set memory_chunk size
void setPID(const long long int &pid); // set pid
void setActive(const bool &is_active); // set active
long long int start() const; // @return start range
long long int end() const; // @return end range
long long int pid() const; // @return pid
long long int memoryChunk() const; // @return memory chunk
bool active() const; // @return activity of process in memory
};
#endif // MEMBLOCK_H