Commit a63fdab
authored
Re-implement RectArray and Matrix (#730)
This re-implements the RectArray and Matrix classes:
* Matrix is no longer derived from RectArray, but instead uses RectArray internally as storage.
* RectArray is now implemented in terms of a continuous `std::vector`, rather that manually-allocated pointer-to-pointer
* Internal implementations in both classes re-written to use STL algorithms and/or efficient iterators, as appropriate
* General modernisation cleanups.1 parent 47e86f3 commit a63fdab
6 files changed
Lines changed: 750 additions & 792 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | 252 | | |
254 | 253 | | |
255 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 32 | | |
0 commit comments