52 Position operator+(Position a, offset_t b);
57 Position operator-(Position a, offset_t b);
62 bool operator ==(
const Position& a,
const Position& b);
67 bool operator !=(
const Position& a,
const Position& b);
69 std::ostream& operator<<(std::ostream& out,
const Position& position);
Stores an absolute address along with the containing segment or address space.
Definition position.h:17
offset_t GetSegmentOffset() const
Returns the offset from the start of the segment.
Definition position.cc:9
offset_t address
The address of the position, independent of segment it belongs to.
Definition position.h:22
std::shared_ptr< Segment > segment
The segment or address space of the position.
Definition position.h:26
Position & operator-=(offset_t value)
Arithmetic on the address.
Definition position.cc:20
Position & operator+=(offset_t value)
Arithmetic on the address.
Definition position.cc:14