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