#ifndef VEGA_VFrVectObject #define VEGA_VFrVectObject //*-- Author : Damir Buskulic 22/05/02 ////////////////////////////////////////////////////////////////////////// // // // VFrVectObject // // // // Encapsulates an FrVect structure. Mainly used in the VSignal and // // VSignalManager classes. It is also the output of a frame channel's // // GetSignal classes, which may be adopted by VSignal objects, without // // fear that the user may want to get the ownership. // // This class is a helper class and should not be used or taken care of // // by users // // // ////////////////////////////////////////////////////////////////////////// #include "FrameL.h" #include "TObject.h" class VFrVectObject : public TObject { private : FrVect* mVect; int mCount; public : VFrVectObject(); VFrVectObject(FrVect* vect); ~VFrVectObject(); ULong_t Hash() const; Bool_t IsEqual(const TObject *obj) const; FrVect* GetFrVect() const {return mVect;} void Delete(Option_t* opt=""); FrVect* Release() {mCount = 0; return mVect;} int GetCount() {return mCount;} void IncCount() {mCount++;} void DecCount() {if (mCount>0) mCount--;} ClassDef(VFrVectObject,0) }; #endif