Lines Matching defs:key
24 sentinel key that will never be present, such as SK_InvalidUniqueID.
32 // How many key/value pairs are in the table?
40 // If there is key/value entry in the table with this key, return a pointer to the value.
42 const V* find(const K& key) const {
43 if (key != fLastKey) {
44 fLastKey = key;
45 fLastValue = fMap.find(key);
50 // Set key to val in the map, replacing any previous value with the same key.
51 // We copy both key and val, and return a pointer to the value copy now in the map.
52 const V* set(K key, V val) {
53 if (fLastValue && key == fLastKey) {
56 fLastKey = key;
57 fLastValue = fMap.set(std::move(key), std::move(val));
62 // Remove the key/value entry in the table with this key.
63 void remove(K key) {
66 fLastKey = std::move(key);