Lines Matching refs:numElements
54 ArrayBuffer (size_t numElements);
55 ArrayBuffer (const T* ptr, size_t numElements);
61 void setStorage (size_t numElements); // !< \note after a succesful call buffer contents are undefined
84 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements)
88 if (numElements)
91 const size_t storageSize = (numElements - 1) * Stride + sizeof(T);
98 m_cap = numElements;
103 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const T* ptr, size_t numElements)
107 if (numElements)
110 ArrayBuffer<T,Alignment,Stride> tmp(numElements);
115 const size_t storageSize = sizeof(T) * numElements;
121 for (size_t ndx = 0; ndx < numElements; ++ndx)
170 void ArrayBuffer<T,Alignment,Stride>::setStorage (size_t numElements)
173 ArrayBuffer<T,Alignment,Stride> newBuffer(numElements);