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

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