| 5281 | |
| 5282 | template<typename T> |
| 5283 | VmaListItem<T>* VmaRawList<T>::PushBack() |
| 5284 | { |
| 5285 | ItemType* const pNewItem = m_ItemAllocator.Alloc(); |
| 5286 | pNewItem->pNext = VMA_NULL; |
| 5287 | if(IsEmpty()) |
| 5288 | { |
| 5289 | pNewItem->pPrev = VMA_NULL; |
| 5290 | m_pFront = pNewItem; |
| 5291 | m_pBack = pNewItem; |
| 5292 | m_Count = 1; |
| 5293 | } |
| 5294 | else |
| 5295 | { |
| 5296 | pNewItem->pPrev = m_pBack; |
| 5297 | m_pBack->pNext = pNewItem; |
| 5298 | m_pBack = pNewItem; |
| 5299 | ++m_Count; |
| 5300 | } |
| 5301 | return pNewItem; |
| 5302 | } |
| 5303 | |
| 5304 | template<typename T> |
| 5305 | VmaListItem<T>* VmaRawList<T>::PushFront(const T& value) |
no test coverage detected