Changeset 9234 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 01/21/09 14:26:15 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r9229 r9234 29 29 30 30 #pragma link C++ class MSpline3+; 31 #pragma link C++ class MQuaternion+; 31 32 32 33 #pragma link C++ class MString+; -
trunk/MagicSoft/Mars/mbase/MArrayI.cc
r5088 r9234 36 36 #include "MArrayI.h" 37 37 38 #include "MMath.h" 39 38 40 ClassImp(MArrayI); 39 41 42 void MArrayI::ReSort(Bool_t down) 43 { 44 MMath::ReSort(fN, fArray, down); 45 } -
trunk/MagicSoft/Mars/mbase/MArrayI.h
r9211 r9234 73 73 // Add char c at position i. Check for out of bounds. 74 74 fArray[i] = c; 75 } 76 77 void Add(Int_t c) 78 { 79 Set(fN+1); 80 fArray[fN-1] = c; 81 } 82 83 Int_t Find(Int_t c) const 84 { 85 for (Int_t *ptr=fArray; ptr<fArray+fN; ptr++) 86 if (*ptr==c) 87 return ptr-fArray; 88 89 return -1; 90 } 91 92 void AddUniq(Int_t c) 93 { 94 if (Find(c)<0) 95 Add(c); 75 96 } 76 97 … … 157 178 } 158 179 180 void ReSort(Bool_t down=kFALSE); 181 159 182 ClassDef(MArrayI, 1) //Array of Int_t 160 183 }; -
trunk/MagicSoft/Mars/mbase/MMath.cc
r9226 r9234 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.4 4 2009-01-17 14:52:37tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.45 2009-01-21 14:22:39 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 347 347 *ptr = cpy[*idx++]; 348 348 349 delete cpy;350 delete pos;349 delete [] cpy; 350 delete [] pos; 351 351 } 352 352 -
trunk/MagicSoft/Mars/mbase/Makefile
r9229 r9234 24 24 MMath.cc \ 25 25 MSpline3.cc \ 26 MQuaternion.cc \ 26 27 MEnv.cc \ 27 28 MLog.cc \
Note:
See TracChangeset
for help on using the changeset viewer.