source: trunk/MagicSoft/Mars/mbase/MArray.h@ 3500

Last change on this file since 3500 was 3115, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MArray
2#define MARS_MArray
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MArray //
7// //
8// Abstract array base class for TObject derived Arrays //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MAGIC
13#include "MAGIC.h"
14#endif
15
16class TArrayF;
17class TArrayD;
18class MArray : public TObject
19{
20protected:
21 UInt_t fN; // Number of array elements
22
23public:
24 MArray() { fN = 0; }
25 MArray(UInt_t n) { fN = n; }
26 MArray(const MArray &a) { fN = a.fN; }
27 virtual ~MArray() { fN = 0; }
28
29 MArray &operator=(const MArray &rhs) { fN = rhs.fN; return *this; }
30
31 UInt_t GetSize() const { return fN; }
32 virtual void Set(UInt_t n) = 0;
33
34 static void StripZeros(TArrayF &arr);
35 static void StripZeros(TArrayD &arr);
36
37 ClassDef(MArray, 1) //Abstract array base class for TObject derived Arrays
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.