Changeset 20053
- Timestamp:
- 04/11/21 17:40:23 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFTM.h
r19022 r20053 315 315 const int board = (idx/9)/4; 316 316 317 uint16_t &pix = fBoard[board/10][board%10].fEnable[patch];317 uint16_t &pix = *(fBoard[board/10][board%10].fEnable+patch); 318 318 319 319 if (enable) … … 497 497 } 498 498 499 uint32_t &operator[](int i) { return fRatePatch[i]; }499 uint32_t &operator[](int i) { return *(fRatePatch+i); } 500 500 501 501 } __attribute__((__packed__)); … … 735 735 void clear() { reset(*this); } 736 736 737 uint16_t &operator[](int idx) { return fData[idx]; }738 const uint16_t &operator[](int idx) const { return fData[idx]; }737 uint16_t &operator[](int idx) { return *(fData+idx); } 738 uint16_t operator[](int idx) const { return fData[idx]; } 739 739 740 740 void print(std::ostream &out) const;
Note:
See TracChangeset
for help on using the changeset viewer.