#ifndef ROOT_TVirtualArray
#define ROOT_TVirtualArray
#include "TClassRef.h"
class TVirtualArray {
public:
TClassRef fClass;
UInt_t fSize;
char *fArray;
TVirtualArray( TClass *cl, UInt_t size ) : fClass(cl), fSize(size), fArray( (char*)( cl ? cl->NewArray(size) : 0) ) {};
~TVirtualArray() { if (fClass) fClass->DeleteArray( fArray ); }
TClass *GetClass() { return fClass; }
char *operator[](UInt_t ind) const { return GetObjectAt(ind); }
char *GetObjectAt(UInt_t ind) const { return fArray+fClass->Size()*ind; }
};
#endif // ROOT_TVirtualArray
Last change: Fri Sep 19 09:33:13 2008
Last generated: 2008-09-19 09:33
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.