Lines Matching refs:T

127 	template<typename T, uint32 capacity>
135 byte rawMemory_[ capacity * sizeof(T) + ALIGNMENT];
138 T* IndexToObject(int32 index) in IndexToObject()
141 T* pObjectMemory = (T*)(alignedMemory + index * sizeof(T)); in IndexToObject()
146 T* AllocObject(int32 & id) in AllocObject()
152 T* pObject = IndexToObject(index); in AllocObject()
162 …static_assert(std::is_base_of<MT::ScopeDesc, T>::value, "Type must be derived from MT::ScopeDesc"); in PersistentScopeDescriptorStorage()
171 T* pObject = IndexToObject(i); in ~PersistentScopeDescriptorStorage()
173 pObject->~T(); in ~PersistentScopeDescriptorStorage()
180 T* pObject = AllocObject(id); in Alloc()
185 new(pObject) T(srcFile, srcLine, scopeName); in Alloc()
194 T* pObject = AllocObject(id); in Alloc()
199 new(pObject) T(srcFile, srcLine, scopeName, p1); in Alloc()
207 T* pObject = AllocObject(id); in Alloc()
212 new(pObject) T(srcFile, srcLine, scopeName, p1, p2); in Alloc()
220 T* pObject = AllocObject(id); in Alloc()
225 new(pObject) T(srcFile, srcLine, scopeName, p1, p2, p3); in Alloc()
229 T* Get(int32 id) in Get()
234 T* pObject = IndexToObject(index); in Get()
250 template<typename T, uint32 capacity>
257 byte rawMemory_[ capacity * sizeof(T) + ALIGNMENT];
259 T* IndexToObject(int32 index) in IndexToObject()
262 T* pObjectMemory = (T*)(alignedMemory + index * sizeof(T)); in IndexToObject()
267 T* AllocObject() in AllocObject()
272 T* pObject = IndexToObject(index); in AllocObject()
280 …static_assert(std::is_base_of<MT::ScopeStackEntry, T>::value, "Type must be derived from MT::Scope… in WeakScopeStack()
288 T* pObject = IndexToObject(i); in ~WeakScopeStack()
290 pObject->~T(); in ~WeakScopeStack()
296 T* Get(int32 id) in Get()
314 T* pObject = IndexToObject(index); in Pop()
316 pObject->~T(); in Pop()
319 T* Push() in Push()
321 T* pObject = AllocObject(); in Push()
322 new(pObject) T(); in Push()
327 T* Push(const T1 & p1) in Push()
329 T* pObject = AllocObject(); in Push()
330 new(pObject) T(p1); in Push()
335 T* Push(const T1 & p1, const T2 & p2) in Push()
337 T* pObject = AllocObject(); in Push()
338 new(pObject) T(p1, p2); in Push()
343 T* Push(const T1 & p1, const T2 & p2, const T3 & p3) in Push()
345 T* pObject = AllocObject(); in Push()
346 new(pObject) T(p1, p2, p3); in Push()
351 T* Push(const T1 & p1, const T2 & p2, const T3 & p3, const T4 & p4) in Push()
353 T* pObject = AllocObject(); in Push()
354 new(pObject) T(p1, p2, p3, p4); in Push()
369 template<typename T, uint32 capacity>
382 byte rawMemory_[ capacity * sizeof(T) + ALIGNMENT ];
385 T* IndexToObject(int32 index) in IndexToObject()
388 T* pObjectMemory = (T*)(alignedMemory + index * sizeof(T)); in IndexToObject()
392 T* AllocObject() in AllocObject()
401 T* pObject = IndexToObject(index); in AllocObject()
413 …static_assert(std::is_base_of<MT::ScopeStackEntry, T>::value, "Type must be derived from MT::Scope… in StrongScopeStack()
423 T* Get(int32 id) in Get()
450 T* Push() in Push()
452 T* pObject = AllocObject(); in Push()
453 new(pObject) T(); in Push()
458 T* Push(T1 p1, T2 p2) in Push()
460 T* pObject = AllocObject(); in Push()
461 new(pObject) T(p1, p2); in Push()
466 T* Push(T1 p1, T2 p2, T3 p3) in Push()
468 T* pObject = AllocObject(); in Push()
469 new(pObject) T(p1, p2, p3); in Push()
474 T* Push(T1 p1, T2 p2, T3 p3, T4 p4) in Push()
476 T* pObject = AllocObject(); in Push()
477 new(pObject) T(p1, p2, p3, p4); in Push()
486 T* pObject = IndexToObject(i); in Reset()
488 pObject->~T(); in Reset()