Lines Matching refs:index

138 		T* IndexToObject(int32 index)  in IndexToObject()  argument
141 T* pObjectMemory = (T*)(alignedMemory + index * sizeof(T)); in IndexToObject()
149 int32 index = top.IncFetch() - 1; in AllocObject() local
150 …MT_VERIFY(index < (int32)capacity, "Area allocator is full. Can't allocate more memory.", return n… in AllocObject()
152 T* pObject = IndexToObject(index); in AllocObject()
153 id = (index + 1); in AllocObject()
233 int32 index = ( id - 1); in Get() local
234 T* pObject = IndexToObject(index); in Get()
259 T* IndexToObject(int32 index) in IndexToObject() argument
262 T* pObjectMemory = (T*)(alignedMemory + index * sizeof(T)); in IndexToObject()
269 int32 index = top; in AllocObject() local
270 …MT_VERIFY(index < (int32)capacity, "Stack allocator overflow. Can't allocate more memory.", return… in AllocObject()
272 T* pObject = IndexToObject(index); in AllocObject()
299 int32 index = (id - 1); in Get() local
300 return IndexToObject(index); in Get()
312 int32 index = top; in Pop() local
313 MT_ASSERT(index >= 0, "Stack already empty. Invalid call."); in Pop()
314 T* pObject = IndexToObject(index); in Pop()
385 T* IndexToObject(int32 index) in IndexToObject() argument
388 T* pObjectMemory = (T*)(alignedMemory + index * sizeof(T)); in IndexToObject()
398 int32 index = count; in AllocObject() local
399 …MT_VERIFY(index < (int32)capacity, "Stack allocator overflow. Can't allocate more memory.", return… in AllocObject()
401 T* pObject = IndexToObject(index); in AllocObject()
403 stackId[stackIndex] = (index + 1); in AllocObject()
426 int32 index = (id - 1); in Get() local
427 return IndexToObject(index); in Get()
443 int32 index = top; in Pop() local
444 MT_ASSERT(index >= 0, "Stack already empty. Invalid call."); in Pop()
446 stackId[index] = 0; in Pop()