Lines Matching full:alignment
38 template<typename T, deUint32 Alignment>
41 template<typename T, deUint32 Alignment>
51 template<typename T, deUint32 Alignment = (sizeof(T) > sizeof(void*) ? (deUint32)sizeof(void*) : (d…
55 typedef PoolArrayIterator<T, Alignment> Iterator;
56 typedef PoolArrayConstIterator<T, Alignment> ConstIterator;
62 PoolArray (MemPool* pool, const PoolArray<T, Alignment>& other);
101 …PoolArray (const PoolArray<T, Alignment>& other); // \note Default copy ctor is not allowed, use…
114 template<typename T, deUint32 Alignment>
127 template<typename T, deUint32 Alignment>
128 class PoolArrayConstIterator : public PoolArrayIteratorBase<T, Alignment>
132 PoolArrayConstIterator (const PoolArray<T, Alignment>* array, deIntptr ndx);
133 PoolArrayConstIterator (const PoolArrayIterator<T, Alignment>& iterator);
138 const PoolArray<T, Alignment>* getArray (void) const throw() { return m_array; } in getArray()
146 PoolArrayConstIterator<T, Alignment>& operator++ (void) { this->m_ndx += 1; return *this; } in operator ++()
147 PoolArrayConstIterator<T, Alignment>& operator-- (void) { this->m_ndx -= 1; return *this; } in operator --()
150 …PoolArrayConstIterator<T, Alignment> operator++ (int) { PoolArrayConstIterator<T, Alignment> copy(… in operator ++()
151 …PoolArrayConstIterator<T, Alignment> operator-- (int) { PoolArrayConstIterator<T, Alignment> copy(… in operator --()
154 …PoolArrayConstIterator<T, Alignment>& operator+= (deIntptr offs) { this->m_ndx += offs; return *th… in operator +=()
155 …PoolArrayConstIterator<T, Alignment>& operator-= (deIntptr offs) { this->m_ndx -= offs; return *th… in operator -=()
158 PoolArrayConstIterator<T, Alignment>& operator= (const PoolArrayIterator<T, Alignment>& iter);
161 const PoolArray<T, Alignment>* m_array;
164 template<typename T, deUint32 Alignment>
165 class PoolArrayIterator : public PoolArrayIteratorBase<T, Alignment>
169 PoolArrayIterator (PoolArray<T, Alignment>* array, deIntptr ndx);
174 PoolArray<T, Alignment>* getArray (void) const throw() { return m_array; } in getArray()
182 PoolArrayIterator<T, Alignment>& operator++ (void) { this->m_ndx += 1; return *this; } in operator ++()
183 PoolArrayIterator<T, Alignment>& operator-- (void) { this->m_ndx -= 1; return *this; } in operator --()
186 …PoolArrayIterator<T, Alignment> operator++ (int) { PoolArrayIterator<T, Alignment> copy(*this); t… in operator ++()
187 …PoolArrayIterator<T, Alignment> operator-- (int) { PoolArrayIterator<T, Alignment> copy(*this); t… in operator --()
190 PoolArrayIterator<T, Alignment>& operator+= (deIntptr offs) { this->m_ndx += offs; return *this; } in operator +=()
191 PoolArrayIterator<T, Alignment>& operator-= (deIntptr offs) { this->m_ndx -= offs; return *this; } in operator -=()
194 PoolArray<T, Alignment>* m_array;
225 template<typename T, deUint32 Alignment>
226 PoolArray<T, Alignment>::PoolArray (MemPool* pool) in PoolArray()
233 DE_ASSERT(deIsPowerOfTwo32(Alignment)); in PoolArray()
236 template<typename T, deUint32 Alignment>
237 PoolArray<T, Alignment>::~PoolArray (void) in ~PoolArray()
243 template<typename T, deUint32 Alignment>
244 inline void PoolArray<T, Alignment>::clear (void) in clear()
249 template<typename T, deUint32 Alignment>
250 inline void PoolArray<T, Alignment>::resize (deUintptr newSize) in resize()
273 template<typename T, deUint32 Alignment>
274 inline void PoolArray<T, Alignment>::resize (deUintptr newSize, const T& value) in resize()
291 template<typename T, deUint32 Alignment>
292 inline void PoolArray<T, Alignment>::reserve (deUintptr capacity) in reserve()
324 deUintptr elementSize = (deUintptr)deAlignPtr((void*)(deUintptr)sizeof(T), Alignment); in reserve()
331 void* newPage = deAlignPtr(oldPageTable, Alignment); in reserve()
335 break; // No free space for alloc + alignment. in reserve()
349 m_pageTable[pageTableNdx] = m_pool->alignedAlloc(pageAllocSize, Alignment); in reserve()
358 template<typename T, deUint32 Alignment>
359 inline void PoolArray<T, Alignment>::pushBack (const T& value) in pushBack()
365 template<typename T, deUint32 Alignment>
366 inline T PoolArray<T, Alignment>::popBack (void) in popBack()
373 template<typename T, deUint32 Alignment>
374 inline T* PoolArray<T, Alignment>::getPtr (deIntptr ndx) const in getPtr()
379 deUintptr elemSize = (deUintptr)deAlignPtr((void*)(deUintptr)sizeof(T), Alignment); in getPtr()
381 DE_ASSERT(deIsAlignedPtr(ptr, Alignment)); in getPtr()
387 template<typename T, deUint32 Alignment>
388 … bool operator== (const PoolArrayIteratorBase<T, Alignment>& a, const PoolArrayIteratorBase<T, Ali… in operator ==()
394 template<typename T, deUint32 Alignment>
395 … bool operator!= (const PoolArrayIteratorBase<T, Alignment>& a, const PoolArrayIteratorBase<T, Ali… in operator !=()
401 template<typename T, deUint32 Alignment>
402 …e bool operator< (const PoolArrayIteratorBase<T, Alignment>& a, const PoolArrayIteratorBase<T, Ali… in operator <()
407 template<typename T, deUint32 Alignment>
408 …e bool operator> (const PoolArrayIteratorBase<T, Alignment>& a, const PoolArrayIteratorBase<T, Ali… in operator >()
413 template<typename T, deUint32 Alignment>
414 … bool operator<= (const PoolArrayIteratorBase<T, Alignment>& a, const PoolArrayIteratorBase<T, Ali… in operator <=()
419 template<typename T, deUint32 Alignment>
420 … bool operator>= (const PoolArrayIteratorBase<T, Alignment>& a, const PoolArrayIteratorBase<T, Ali… in operator >=()
427 template<typename T, deUint32 Alignment>
428 inline PoolArrayConstIterator<T, Alignment>::PoolArrayConstIterator (void) in PoolArrayConstIterator()
429 : PoolArrayIteratorBase<T, Alignment> (0) in PoolArrayConstIterator()
434 template<typename T, deUint32 Alignment>
435 inline PoolArrayConstIterator<T, Alignment>::PoolArrayConstIterator (const PoolArray<T, Alignment>*… in PoolArrayConstIterator()
436 : PoolArrayIteratorBase<T, Alignment> (ndx) in PoolArrayConstIterator()
441 template<typename T, deUint32 Alignment>
442 inline PoolArrayConstIterator<T, Alignment>::PoolArrayConstIterator (const PoolArrayIterator<T, Ali… in PoolArrayConstIterator()
443 : PoolArrayIteratorBase<T, Alignment> (iter) in PoolArrayConstIterator()
448 template<typename T, deUint32 Alignment>
449 inline PoolArrayConstIterator<T, Alignment>::~PoolArrayConstIterator (void) in ~PoolArrayConstIterator()
455 template<typename T, deUint32 Alignment>
456 inline PoolArrayConstIterator<T, Alignment> operator+ (const PoolArrayConstIterator<T, Alignment>& … in operator +()
458 return PoolArrayConstIterator<T, Alignment>(iter->getArray(), iter->getNdx()+offs); in operator +()
461 template<typename T, deUint32 Alignment>
462 inline PoolArrayConstIterator<T, Alignment> operator+ (deUintptr offs, const PoolArrayConstIterator… in operator +()
464 return PoolArrayConstIterator<T, Alignment>(iter->getArray(), iter->getNdx()+offs); in operator +()
467 template<typename T, deUint32 Alignment>
468 PoolArrayConstIterator<T, Alignment> operator- (const PoolArrayConstIterator<T, Alignment>& iter, d… in operator -()
470 return PoolArrayConstIterator<T, Alignment>(iter.getArray(), iter.getNdx()-offs); in operator -()
473 template<typename T, deUint32 Alignment>
474 …ptr operator- (const PoolArrayConstIterator<T, Alignment>& iter, const PoolArrayConstIterator<T, A… in operator -()
481 template<typename T, deUint32 Alignment>
482 inline PoolArrayIterator<T, Alignment>::PoolArrayIterator (void) in PoolArrayIterator()
483 : PoolArrayIteratorBase<T, Alignment> (0) in PoolArrayIterator()
488 template<typename T, deUint32 Alignment>
489 inline PoolArrayIterator<T, Alignment>::PoolArrayIterator (PoolArray<T, Alignment>* array, deIntptr… in PoolArrayIterator()
490 : PoolArrayIteratorBase<T, Alignment> (ndx) in PoolArrayIterator()
495 template<typename T, deUint32 Alignment>
496 inline PoolArrayIterator<T, Alignment>::~PoolArrayIterator (void) in ~PoolArrayIterator()
502 template<typename T, deUint32 Alignment>
503 inline PoolArrayIterator<T, Alignment> operator+ (const PoolArrayIterator<T, Alignment>& iter, deIn… in operator +()
505 return PoolArrayIterator<T, Alignment>(iter.getArray(), iter.getNdx()+offs); in operator +()
508 template<typename T, deUint32 Alignment>
509 inline PoolArrayIterator<T, Alignment> operator+ (deUintptr offs, const PoolArrayIterator<T, Alignm… in operator +()
511 return PoolArrayIterator<T, Alignment>(iter.getArray(), iter.getNdx()+offs); in operator +()
514 template<typename T, deUint32 Alignment>
515 PoolArrayIterator<T, Alignment> operator- (const PoolArrayIterator<T, Alignment>& iter, deIntptr of… in operator -()
517 return PoolArrayIterator<T, Alignment>(iter.getArray(), iter.getNdx()-offs); in operator -()
520 template<typename T, deUint32 Alignment>
521 deIntptr operator- (const PoolArrayIterator<T, Alignment>& iter, const PoolArrayIterator<T, Alignme… in operator -()
532 template<typename T, deUint32 Alignment>
533 struct iterator_traits<de::PoolArrayConstIterator<T, Alignment> >
542 template<typename T, deUint32 Alignment>
543 struct iterator_traits<de::PoolArrayIterator<T, Alignment> >