30 lines
565 B
C
30 lines
565 B
C
|
#ifndef DOMAIN_ADDRESS_SPACE_H
|
||
|
#define DOMAIN_ADDRESS_SPACE_H
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
namespace domain {
|
||
|
|
||
|
class AddressSpace {
|
||
|
std::string name;
|
||
|
long long start;
|
||
|
long long end;
|
||
|
|
||
|
public:
|
||
|
AddressSpace(std::string name, long long start, long long end);
|
||
|
|
||
|
std::string getName();
|
||
|
|
||
|
long long getStart() const;
|
||
|
|
||
|
long long getEnd() const;
|
||
|
|
||
|
bool contains(long long int address);
|
||
|
|
||
|
bool contains(long long int start, long long int end);
|
||
|
};
|
||
|
|
||
|
} // namespace domain
|
||
|
|
||
|
#endif // DOMAIN_ADDRESS_SPACE_H
|