28 template <u
int32_t noOfDims,
typename ElementType>
31 assert(uIndex<m_pDimensions[0]);
33 SubArray<noOfDims-1, ElementType>(&m_pElements[uIndex*m_pOffsets[0]],
34 m_pDimensions+1, m_pOffsets+1);
37 template <u
int32_t noOfDims,
typename ElementType>
40 assert(uIndex<m_pDimensions[0]);
42 SubArray<noOfDims-1, ElementType>(&m_pElements[uIndex*m_pOffsets[0]],
43 m_pDimensions+1, m_pOffsets+1);
46 template <u
int32_t noOfDims,
typename ElementType>
48 :m_pDimensions(pDimensions)
51 ,m_pElements(pElements)
56 template <
typename ElementType>
59 assert(uIndex<m_pDimensions[0]);
60 return m_pElements[uIndex];
63 template <
typename ElementType>
66 assert(uIndex<m_pDimensions[0]);
67 return m_pElements[uIndex];
70 template <
typename ElementType>
72 :m_pDimensions(pDimensions)
73 ,m_pElements(pElements)