//*-- 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 "VFrVectObject.h"
#include "TMath.h"
ClassImp(VFrVectObject)
//______________________________________________________________________________VFrVectObject::VFrVectObject()
{
// default constructormVect = 0;
mCount = 0;
}
//______________________________________________________________________________VFrVectObject::VFrVectObject(FrVect* vect)
{
// ConstructormVect = vect;
mCount = 1;
}
//______________________________________________________________________________VFrVectObject::~VFrVectObject()
{
// Destructor. Should have destroyed the vector with delete before.// This is not perfect but works for the time being
}
//______________________________________________________________________________ULong_tVFrVectObject::Hash() const
{
// Return hash value for this VFrVectObject. Used for inclusion in THashTable
const void *ptr = GetFrVect();
return TMath::Hash(&ptr, sizeof(void*));
}
//______________________________________________________________________________voidVFrVectObject::Delete(Option_t* opt)
{
// Delete the frame vector
if (mCount==0) {printf("here Delete n");FrVectFree(mVect);}
}
//______________________________________________________________________________Bool_tVFrVectObject::IsEqual(const TObject *obj) const
{
// Default equal comparison (VFrVectObjects are equal if they point to the same // FrVect in memory).Bool_t result = (((VFrVectObject*)obj)->GetFrVect() == GetFrVect());
return result;
}
- ROOT page - VEGA page - Class index - Top of the page This page has been automatically generated. If you have any comments or suggestions
about the page layout send a mail to
, or
contact
with any questions or problems regarding ROOT or VEGA.