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

Method cleanup

Utils/Hashmap.h:38–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 FORCE_INLINE void cleanup()
39 {
40 if (m_hashMap)
41 {
42 for (unsigned int i=0; i < m_bucketCount; i++)
43 {
44 if (m_hashMap[i] != NULL)
45 {
46 m_hashMap[i]->clear();
47 delete m_hashMap[i];
48 }
49 }
50 delete [] m_hashMap;
51 m_hashMap = NULL;
52 }
53 }
54
55 public:
56 FORCE_INLINE Hashmap(const unsigned int bucketCount)

Callers 8

resetFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected