Construction. The first constructor generates an array of objects that are owned by Array4. The second constructor is given an array of objects that are owned by the caller. The array has bound0 columns, bound1 rows, bound2 slices, and bound3 cuboids.
| 26 | // of objects that are owned by the caller. The array has bound0 |
| 27 | // columns, bound1 rows, bound2 slices, and bound3 cuboids. |
| 28 | Array4(size_t bound0, size_t bound1, size_t bound2, size_t bound3) |
| 29 | : |
| 30 | mBound0(bound0), |
| 31 | mBound1(bound1), |
| 32 | mBound2(bound2), |
| 33 | mBound3(bound3), |
| 34 | mObjects(bound0 * bound1 * bound2 * bound3), |
| 35 | mIndirect1(bound1 * bound2 * bound3), |
| 36 | mIndirect2(bound2 * bound3), |
| 37 | mIndirect3(bound3) |
| 38 | { |
| 39 | SetPointers(mObjects.data()); |
| 40 | } |
| 41 | |
| 42 | Array4(size_t bound0, size_t bound1, size_t bound2, size_t bound3, T* objects) |
| 43 | : |
nothing calls this directly
no outgoing calls
no test coverage detected