Find element. */
| 103 | /** Find element. |
| 104 | */ |
| 105 | FORCE_INLINE ValueType* find(const KeyType &key) |
| 106 | { |
| 107 | const unsigned int hashValue = hashFunction<KeyType>(key); |
| 108 | const unsigned int mapIndex = hashValue & m_moduloValue; |
| 109 | if (m_hashMap[mapIndex] != NULL) |
| 110 | { |
| 111 | typename KeyValueMap::iterator &iter = (*m_hashMap[mapIndex]).find(hashValue); |
| 112 | if (iter != (*m_hashMap[mapIndex]).end()) |
| 113 | return &iter->second; |
| 114 | } |
| 115 | return NULL; |
| 116 | } |
| 117 | |
| 118 | /** Insert element. |
| 119 | */ |
no test coverage detected