| 21 | } |
| 22 | |
| 23 | MinorKey::MinorKey (const MinorKey& mk) |
| 24 | { |
| 25 | _numberOfRowBlocks = mk.getNumberOfRowBlocks(); |
| 26 | _numberOfColumnBlocks = mk.getNumberOfColumnBlocks();; |
| 27 | |
| 28 | /* allocate memory for new entries in _rowKey and _columnKey */ |
| 29 | _rowKey = (unsigned*)omAlloc(_numberOfRowBlocks*sizeof(unsigned)); |
| 30 | _columnKey = (unsigned*)omAlloc(_numberOfColumnBlocks*sizeof(unsigned)); |
| 31 | |
| 32 | /* copying values from parameter arrays to private arrays */ |
| 33 | for (int r = 0; r < _numberOfRowBlocks; r++) |
| 34 | _rowKey[r] = mk.getRowKey(r); |
| 35 | for (int c = 0; c < _numberOfColumnBlocks; c++) |
| 36 | _columnKey[c] = mk.getColumnKey(c); |
| 37 | } |
| 38 | |
| 39 | MinorKey& MinorKey::operator=(const MinorKey& mk) |
| 40 | { |
nothing calls this directly
no test coverage detected