MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / find

Method find

Utils/Hashmap.h:105–116  ·  view source on GitHub ↗

Find element. */

Source from the content-addressed store, hash-verified

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 */

Callers 15

initConstraintMethod · 0.45
queryMethod · 0.45
readSceneMethod · 0.45
readTriangleModelsMethod · 0.45
readTetModelsMethod · 0.45
readValue<bool>Method · 0.45
readParameterObjectMethod · 0.45
readValueMethod · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected