Insert element. */
| 118 | /** Insert element. |
| 119 | */ |
| 120 | FORCE_INLINE void insert(const KeyType &key, const ValueType& value) |
| 121 | { |
| 122 | const unsigned int hashValue = hashFunction<KeyType>(key); |
| 123 | const unsigned int mapIndex = hashValue & m_moduloValue; |
| 124 | if (m_hashMap[mapIndex] == NULL) |
| 125 | { |
| 126 | m_hashMap[mapIndex] = new KeyValueMap(); |
| 127 | } |
| 128 | (*m_hashMap[mapIndex])[hashValue] = value; |
| 129 | } |
| 130 | |
| 131 | /** Remove the given element and return true, if the element was found. |
| 132 | */ |
no outgoing calls
no test coverage detected