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

Method insert

Utils/Hashmap.h:120–129  ·  view source on GitHub ↗

Insert element. */

Source from the content-addressed store, hash-verified

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

Callers 6

vector_pointer_modifiersFunction · 0.45
initConstraintMethod · 0.45
readSceneFunction · 0.45
parseTreeModelsMethod · 0.45
conf.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected