#include <TMath.h>
#include <TObjArray.h>
-#include <iostream.h>
+#include <Riostream.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
}
//__________________________________________________________________________
-AliITSHNode::AliITSHNode(const AliITSHNode &source){
+AliITSHNode::AliITSHNode(const AliITSHNode &source) : TObject(source){
// Copy Constructor
if(&source == this) return;
this->fSymbol = source.fSymbol;
}
//____________________________________________
-Int_t AliITSHNode::Compare(TObject *obj)
+Int_t AliITSHNode::Compare(const TObject *obj) const
{
// function called by Sort method of TObjArray
}
//__________________________________________________________________________
-AliITSHTable::AliITSHTable(const AliITSHTable &source){
+AliITSHTable::AliITSHTable(const AliITSHTable &source) : TObject(source){
// Copy Constructor
if(&source == this) return;
this->fSize = source.fSize;
void AliITSHTable::GetFrequencies(Int_t len, UChar_t *stream)
{
// get frequencies
- printf("Get Frequencies: sym %p \n",fSym);
+ printf("Get Frequencies: sym %p \n",(void*)fSym);
// use temporarily the fCode array to store the frequencies
for (Int_t i=0; i< len; i++) {
fHNodes->RemoveAt(nindex-1);
fHNodes->AddAt(aux,nindex-1);
nindex--;
- printf("nindex, obj at nindex %d %p \n",nindex,(AliITSHNode*)fHNodes->UncheckedAt(nindex));
+ printf("nindex, obj at nindex %d %p \n",nindex,(void*)fHNodes->UncheckedAt(nindex));
}
printf("HTable destructor !\n");
if (fCodeLen) delete[] fCodeLen;
if (fCode) delete [] fCode;
- delete fHNodes;
+ if (fHNodes) {
+ fHNodes->Delete();
+ delete fHNodes;
+ }
}