Lines Matching refs:Stride
47 template <typename T, size_t Alignment = (sizeof(T) > 4 ? 4 : sizeof(T)), size_t Stride = sizeof(T)>
73 template <typename T, size_t Alignment, size_t Stride>
74 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (void) throw()
80 template <typename T, size_t Alignment, size_t Stride>
81 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements)
87 // \note no need to allocate stride for the last element, sizeof(T) is enough. Also handles cases where sizeof(T) > Stride
88 const size_t storageSize = (numElements - 1) * Stride + sizeof(T);
99 template <typename T, size_t Alignment, size_t Stride>
100 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const ArrayBuffer<T,Alignment,Stride>& other)
108 const size_t storageSize = (other.m_cap - 1) * Stride + sizeof(T);
116 template <typename T, size_t Alignment, size_t Stride>
117 ArrayBuffer<T,Alignment,Stride>::~ArrayBuffer (void) throw()
122 template <typename T, size_t Alignment, size_t Stride>
123 ArrayBuffer<T,Alignment,Stride>& ArrayBuffer<T,Alignment,Stride>::operator= (const ArrayBuffer& other)
130 template <typename T, size_t Alignment, size_t Stride>
131 void ArrayBuffer<T,Alignment,Stride>::clear (void) throw()
139 template <typename T, size_t Alignment, size_t Stride>
140 void ArrayBuffer<T,Alignment,Stride>::setStorage (size_t numElements)
143 ArrayBuffer<T,Alignment,Stride> newBuffer(numElements);
147 template <typename T, size_t Alignment, size_t Stride>
148 void ArrayBuffer<T,Alignment,Stride>::swap (ArrayBuffer& other) throw()
159 template <typename T, size_t Alignment, size_t Stride>
160 size_t ArrayBuffer<T,Alignment,Stride>::size (void) const throw()
165 template <typename T, size_t Alignment, size_t Stride>
166 bool ArrayBuffer<T,Alignment,Stride>::empty (void) const throw()
171 template <typename T, size_t Alignment, size_t Stride>
172 T* ArrayBuffer<T,Alignment,Stride>::getElementPtr (size_t elementNdx) throw()
174 return (T*)(((deUint8*)m_ptr) + Stride * elementNdx);
177 template <typename T, size_t Alignment, size_t Stride>
178 const T* ArrayBuffer<T,Alignment,Stride>::getElementPtr (size_t elementNdx) const throw()
180 return (T*)(((deUint8*)m_ptr) + Stride * elementNdx);
183 template <typename T, size_t Alignment, size_t Stride>
184 void* ArrayBuffer<T,Alignment,Stride>::getPtr (void) throw()
189 template <typename T, size_t Alignment, size_t Stride>
190 const void* ArrayBuffer<T,Alignment,Stride>::getPtr (void) const throw()