License:
BSD style: see license.txtVersion:
Apr 2008: Initial releaseAuthors:
KrisSince:
0.99.7 Based upon Doug Lea's Java collection package
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | Iterator iterator (bool forward) Iterator iterator (K key, bool forward) int opApply (int delegate (ref V value) dg) int opApply (int delegate (ref K key, ref V value) dg) bool contains (V value) bool containsKey (K key) bool containsPair (K key, V value) bool keyOf (V value, ref K key) bool get (K key, ref V value) bool take (ref V v) bool take (K key, ref V v) bool removeKey (K key) size_t remove (V value, bool all) size_t remove (IContainer!(V) e, bool all) bool add (K key, V value) size_t replace (V oldElement, V newElement, bool all) bool replacePair (K key, V oldElement, V newElement) bool opIndexAssign (V element, K key) K nearbyKey (K key, bool greater) V opIndex (K key) V* opIn_r (K key) size_t size () bool isEmpty () V[] toArray (V[] dst) SortedMap dup () SortedMap clear () SortedMap reset () SortedMap comparator (Comparator c) |
param:
key a keyReturns:
whether the key is contained or notparam:
key a keyparam:
after indicates whether to look beyond or before the given key, where there is no exact matchThrows:
NoSuchElementException if none foundReturns:
a pointer to the value, or null if not presentThrows:
NoSuchElementException where the map is emptyThrows:
NoSuchElementException where the map is emptyparam:
key a keyReturns:
a pointer to the value, or null if not presentReturns:
a negative number if fst is less than snd; a positive number if fst is greater than snd; else 0Returns:
a negative number if fst is less than snd; a positive number if fst is greater than snd; else 0