class documentation
class SortedTableMap(MapBase):
Map implementation using a sorted table.
Method | __delitem__ |
Remove item associated with key k (raise KeyError if not found). |
Method | __getitem__ |
Return value associated with key k (raise KeyError if not found). |
Method | __init__ |
Create an empty map. |
Method | __iter__ |
Generate keys of the map ordered from minimum to maximum. |
Method | __len__ |
Return number of items in the map. |
Method | __reversed__ |
Generate keys of the map ordered from maximum to minimum. |
Method | __setitem__ |
Assign value v to key k, overwriting existing value if present. |
Method | find |
Return (key,value) pair with least key greater than or equal to k. |
Method | find |
Return (key,value) pair with least key strictly greater than k. |
Method | find |
Return (key,value) pair with greatest key less than or equal to k. |
Method | find |
Return (key,value) pair with greatest key strictly less than k. |
Method | find |
Return (key,value) pair with maximum key (or None if empty). |
Method | find |
Return (key,value) pair with minimum key (or None if empty). |
Method | find |
Iterate all (key,value) pairs such that start <= key < stop. |
Method | _find |
No summary |
Instance Variable | _table |
Undocumented |
Inherited from MapBase
:
Class | _ |
Lightweight composite to store key-value pairs as map items. |
Return (key,value) pair with least key greater than or equal to k.
Return None if there does not exist such a key.
Return (key,value) pair with least key strictly greater than k.
Return None if there does not exist such a key.
Return (key,value) pair with greatest key less than or equal to k.
Return None if there does not exist such a key.
Return (key,value) pair with greatest key strictly less than k.
Return None if there does not exist such a key.