* Get object pointer from logical index * @name GetPtr * @param index [type: uint32_t] index of the object * @return object [type: T*] a pointer to the object. Null if the logical index wasn't valid */
| 211 | * @return object [type: T*] a pointer to the object. Null if the logical index wasn't valid |
| 212 | */ |
| 213 | T* GetPtr(uint32_t index) |
| 214 | { |
| 215 | Entry* e = &m_Entries[index]; |
| 216 | if (e->m_Physical >= m_Objects.Size()) |
| 217 | return 0; |
| 218 | return &m_Objects[e->m_Physical]; |
| 219 | } |
| 220 | |
| 221 | /*# |
| 222 | * Set object from logical index |