This is a helper class for manipulating an ARMap (AddressRangeMap), a non-overlapping interval map. We provide both F#- and C#-style APIs.
Function or value | Description | ||
|
|
||
|
This function is the same as add except that this one takes in two separate parameters for min and max, instead of taking in an AddrRange as input.
|
||
|
|
||
|
|
||
Full Usage:
ARMap.count tree
Parameters:
ARMap<'V>
-
The interval tree.
Returns: int
The number of bindings.
|
|
||
|
|
||
|
|
||
|
Find the mapping that matches with the given range. Unlike find, this function can return a range that covers the given address.
|
||
|
|
||
|
|
||
Full Usage:
ARMap.isEmpty tree
Parameters:
ARMap<'V>
-
The interval tree.
Returns: bool
Returns true if the tree is empty, false otherwise.
|
|
||
|
|||
|
Remove a mapping that matches exactly with the given range. To remove a mapping that covers the given address, use removeAddr.
|
||
|
Remove a mapping that matches with the given address. Unlike remove, this function will remove an interval that includes the given address.
|
||
|
This function is the same as add except that it will overwrite the existing range if it exactly matches with the given range. If ranges overlap, this function will still raise RangeOverlapException.
|
||
|
|
||
|
|
||
|
|