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

Last change on this file since 9366 was 7808, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.2 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 MArray : public TObject
17{
18protected:
19 UInt_t fN; // Number of array elements
20
21public:
22 MArray() { fN = 0; }
23 MArray(UInt_t n) { fN = n; }
24 MArray(const MArray &a) : TObject() { fN = a.fN; }
25 virtual ~MArray() { fN = 0; }
26
27 MArray &operator=(const MArray &rhs) { fN = rhs.fN; return *this; }
28
29 UInt_t GetSize() const { return fN; }
30 virtual void Set(UInt_t n) = 0;
31
32 ClassDef(MArray, 1) //Abstract array base class for TObject derived Arrays
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.