MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Clear

Method Clear

LuaSTGPlus/ObjectPool.hpp:55–63  ·  view source on GitHub ↗

@brief ��ն���ز��������ж���

Source from the content-addressed store, hash-verified

53 }
54 /// @brief ��ն���ز��������ж���
55 void Clear()
56 {
57 m_FreeIndex.resize(m_DataBuffer.size());
58 for (size_t i = 0; i < m_DataBuffer.size(); ++i)
59 {
60 m_FreeIndex[i] = (m_DataBuffer.size() - 1) - i;
61 m_DataUsed[i] = false;
62 }
63 }
64 private:
65 FixedObjectPool& operator=(const FixedObjectPool&);
66 FixedObjectPool(const FixedObjectPool&);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected