source: trunk/MagicSoft/include-Classes/MBase/MArray.h@ 499

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