Lines Matching refs:deUintptr
64 void reserve (deUintptr capacity);
65 void resize (deUintptr size);
66 void resize (deUintptr size, const T& value);
68 deUintptr size (void) const { return m_numElements; } in size()
98 deUintptr m_numElements; //!< Number of elements in the array.
99 deUintptr m_capacity; //!< Number of allocated elements in the array.
101 deUintptr m_pageTableCapacity; //!< Size of the page table.
109 PoolArrayIteratorBase (deUintptr ndx) : m_ndx(ndx) {} in PoolArrayIteratorBase()
134 const T& operator[] (deUintptr offs) const throw() { return (*m_array)[this->m_ndx+offs]; } in operator []()
170 T& operator[] (deUintptr offs) const throw() { return (*m_array)[this->m_ndx+offs]; } in operator []()
241 inline void PoolArray<T, Alignment>::resize (deUintptr newSize) in resize()
246 for (deUintptr ndx = newSize; ndx < m_numElements; ndx++) in resize()
253 deUintptr prevSize = m_numElements; in resize()
259 for (deUintptr ndx = prevSize; ndx < m_numElements; ndx++) in resize()
265 inline void PoolArray<T, Alignment>::resize (deUintptr newSize, const T& value) in resize()
271 deUintptr prevSize = m_numElements; in resize()
277 for (deUintptr ndx = prevSize; ndx < m_numElements; ndx++) in resize()
283 inline void PoolArray<T, Alignment>::reserve (deUintptr capacity) in reserve()
288 deUintptr oldPageTableSize = 0; in reserve()
290 deUintptr newCapacity = (deUintptr)deAlignPtr((void*)capacity, 1 << ELEMENTS_PER_PAGE_LOG2); in reserve()
291 deUintptr reqPageTableCapacity = newCapacity >> ELEMENTS_PER_PAGE_LOG2; in reserve()
295 deUintptr newPageTableCapacity = max(2*m_pageTableCapacity, reqPageTableCapacity); in reserve()
297 deUintptr i; in reserve()
315 deUintptr elementSize = (deUintptr)deAlignPtr((void*)(deUintptr)sizeof(T), Alignment); in reserve()
316 deUintptr pageAllocSize = elementSize << ELEMENTS_PER_PAGE_LOG2; in reserve()
317 deUintptr pageTableNdx = m_capacity >> ELEMENTS_PER_PAGE_LOG2; in reserve()
323 deUintptr alignPadding = (deUintptr)newPage - (deUintptr)oldPageTable; in reserve()
368 deUintptr pageNdx = ((deUintptr)ndx >> ELEMENTS_PER_PAGE_LOG2); in getPtr()
369 deUintptr subNdx = (deUintptr)ndx & ((1 << ELEMENTS_PER_PAGE_LOG2) - 1); in getPtr()
370 deUintptr elemSize = (deUintptr)deAlignPtr((void*)(deUintptr)sizeof(T), Alignment); in getPtr()
453 inline PoolArrayConstIterator<T, Alignment> operator+ (deUintptr offs, const PoolArrayConstIterator… in operator +()
500 inline PoolArrayIterator<T, Alignment> operator+ (deUintptr offs, const PoolArrayIterator<T, Alignm… in operator +()