Changeset 1031 for trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc
- Timestamp:
- 11/06/01 10:33:21 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc
r1004 r1031 41 41 42 42 #include "MLog.h" 43 #include "MRawCrateData.h" 43 44 44 45 ClassImp(MRawCrateArray); … … 80 81 } 81 82 82 // -------------------------------------------------------------------------- 83 // 84 // Return a pointer the i-th entry in the array 85 // 86 MRawCrateData *MRawCrateArray::GetEntry(Int_t i) 83 void MRawCrateArray::SetSize(Int_t i) 87 84 { 88 return (MRawCrateData*)fArray->AddrAt(i); 85 if (fArray->GetEntriesFast() == i) 86 return; 87 88 fArray->ExpandCreateFast(i); 89 89 } 90 90 91 91 // -------------------------------------------------------------------------- 92 92 // 93 // Return the i-th entry in the array 93 // Return a pointer the i-th entry in the array, without range check 94 // 95 MRawCrateData *MRawCrateArray::GetEntry(Int_t i) 96 { 97 return (MRawCrateData*)fArray->UncheckedAt(i); // AddrAt would be with rcheck 98 } 99 100 // -------------------------------------------------------------------------- 101 // 102 // Return the i-th entry in the array, with range check 94 103 // 95 104 MRawCrateData* &MRawCrateArray::operator[](Int_t i)
Note:
See TracChangeset
for help on using the changeset viewer.