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