Home | History | Annotate | Download | only in source

Lines Matching defs:memoryType

22 template<class MemoryType> struct MemoryPoolItem;
24 template<class MemoryType>
28 : memoryType(),
32 MemoryType memoryType;
33 MemoryPoolItem<MemoryType>* base;
36 template<class MemoryType>
42 MemoryPoolItemPayload<MemoryType>* payload;
45 template<class MemoryType>
50 int32_t PopMemory(MemoryType*& memory);
51 int32_t PushMemory(MemoryType*& memory);
61 MemoryPoolItem<MemoryType>* CreateMemory();
73 template<class MemoryType>
74 MemoryPoolImpl<MemoryType>::MemoryPoolImpl(
82 template<class MemoryType>
83 MemoryPoolImpl<MemoryType>::~MemoryPoolImpl()
96 template<class MemoryType>
97 int32_t MemoryPoolImpl<MemoryType>::PopMemory(MemoryType*& memory)
102 MemoryPoolItem<MemoryType>* item = CreateMemory();
110 memory = &((MemoryPoolItem<MemoryType>*)pListEntry)->payload->memoryType;
114 template<class MemoryType>
115 int32_t MemoryPoolImpl<MemoryType>::PushMemory(MemoryType*& memory)
122 MemoryPoolItem<MemoryType>* item =
123 ((MemoryPoolItemPayload<MemoryType>*)memory)->base;
146 template<class MemoryType>
147 bool MemoryPoolImpl<MemoryType>::Initialize()
159 template<class MemoryType>
160 int32_t MemoryPoolImpl<MemoryType>::Terminate()
166 MemoryPoolItem<MemoryType>* item = ((MemoryPoolItem<MemoryType>*)pListEntry);
176 template<class MemoryType>
177 MemoryPoolItem<MemoryType>* MemoryPoolImpl<MemoryType>::CreateMemory()
179 MemoryPoolItem<MemoryType>* returnValue = (MemoryPoolItem<MemoryType>*)
180 AlignedMalloc(sizeof(MemoryPoolItem<MemoryType>),
187 returnValue->payload = new MemoryPoolItemPayload<MemoryType>();