diff options
Diffstat (limited to 'src/processor/range_map.h')
-rw-r--r-- | src/processor/range_map.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/processor/range_map.h b/src/processor/range_map.h index 301b82e5..72a96a96 100644 --- a/src/processor/range_map.h +++ b/src/processor/range_map.h @@ -75,6 +75,20 @@ class RangeMap { AddressType *entry_base, AddressType *entry_size) const; + // Treating all ranges as a list ordered by the address spaces that they + // occupy, locates the range at the index specified by index. Returns + // false if index is larger than the number of ranges stored, or if another + // parameter error occurs. entry_base and entry_size, if non-NULL, are set + // to the base and size of the entry's range. + // + // RetrieveRangeAtIndex is not optimized for speedy operation. + bool RetrieveRangeAtIndex(int index, EntryType *entry, + AddressType *entry_base, AddressType *entry_size) + const; + + // Returns the number of ranges stored in the RangeMap. + int GetCount() const; + // Empties the range map, restoring it to the state it was when it was // initially created. void Clear(); |