MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / PushBack

Method PushBack

modules/engine/graphics/src/d3d12/D3D12MemAlloc.cpp:2314–2333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2312
2313template<typename T>
2314typename List<T>::Item* List<T>::PushBack()
2315{
2316 Item* const pNewItem = m_ItemAllocator.Alloc();
2317 pNewItem->pNext = NULL;
2318 if(IsEmpty())
2319 {
2320 pNewItem->pPrev = NULL;
2321 m_pFront = pNewItem;
2322 m_pBack = pNewItem;
2323 m_Count = 1;
2324 }
2325 else
2326 {
2327 pNewItem->pPrev = m_pBack;
2328 m_pBack->pNext = pNewItem;
2329 m_pBack = pNewItem;
2330 ++m_Count;
2331 }
2332 return pNewItem;
2333}
2334
2335template<typename T>
2336typename List<T>::Item* List<T>::PushFront()

Callers 3

NormalBlockClass · 0.45
JsonPushBackFunction · 0.45
ValueToJsonFunction · 0.45

Calls 2

IsEmptyFunction · 0.50
AllocMethod · 0.45

Tested by

no test coverage detected