2022-04-08 18:17:58 +00:00
|
|
|
#ifndef DOMAIN_ADDRESS_SPACE_H
|
|
|
|
#define DOMAIN_ADDRESS_SPACE_H
|
2022-03-31 21:20:41 +00:00
|
|
|
|
|
|
|
#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();
|
|
|
|
long long getEnd();
|
2022-04-10 12:23:18 +00:00
|
|
|
|
|
|
|
bool contains(long long int address);
|
|
|
|
bool contains(long long int start, long long int end);
|
2022-03-31 21:20:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace domain
|
|
|
|
|
2022-04-08 18:17:58 +00:00
|
|
|
#endif // DOMAIN_ADDRESS_SPACE_H
|