#ifndef ROOT_TVirtualObject
#define ROOT_TVirtualObject
#include "TClassRef.h"
class TVirtualObject {
public:
TClassRef fClass;
void *fObject;
TVirtualObject( TClass *cl ) : fClass(cl), fObject( cl ? cl->New() : 0 ) {};
~TVirtualObject() { if (fClass) fClass->Destructor( fObject ); }
TClass *GetClass() { return fClass; }
void *GetObject() { return fObject; }
};
#endif // ROOT_TVirtualObject
Last change: Fri Sep 19 09:33:14 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.