schema_editor/comdel/domain/addressspace.h

28 lines
514 B
C
Raw Permalink Normal View History

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();
2022-04-24 20:21:45 +00:00
long long getStart() const;
long long getEnd() const;
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