Added Statement::ContainsAddress().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31168 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-06-21 23:28:13 +00:00
parent 470c2c49a9
commit 1df9bf1220
2 changed files with 12 additions and 0 deletions

View File

@ -71,3 +71,10 @@ ContiguousStatement::AddressRangeAt(int32 index) const
{
return index == 0 ? fRange : TargetAddressRange();
}
bool
ContiguousStatement::ContainsAddress(target_addr_t address) const
{
return fRange.Contains(address);
}

View File

@ -23,6 +23,9 @@ public:
virtual int32 CountAddressRanges() const = 0;
virtual TargetAddressRange AddressRangeAt(int32 index) const = 0;
virtual bool ContainsAddress(target_addr_t address)
const = 0;
};
@ -51,6 +54,8 @@ public:
virtual int32 CountAddressRanges() const;
virtual TargetAddressRange AddressRangeAt(int32 index) const;
virtual bool ContainsAddress(target_addr_t address) const;
protected:
TargetAddressRange fRange;
};