Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaNamedList.h
Go to the documentation of this file.
1#ifndef Podd_THaNamedList_h_
2#define Podd_THaNamedList_h_
3
5//
6// THaNamedList
7//
8// A list with a name. Used to store blocks of THaCuts (tests) in a
9// THashTable.
10//
12
13#include "TList.h"
14#include "TNamed.h"
15
16class THaNamedList : public TList {
17
18public:
20 explicit THaNamedList( const char* name );
21 THaNamedList( const char* name, const char* descript );
22 virtual ~THaNamedList();
23
24 virtual Int_t Compare( const TObject* obj) const
25 { return fNamed->Compare(obj); }
26 virtual void FillBuffer(char*& buffer) { fNamed->FillBuffer(buffer); }
27 const Text_t* GetName() const { return fNamed->GetName(); }
28 const Text_t* GetTitle() const { return fNamed->GetTitle(); }
29 virtual ULong_t Hash() const { return fNamed->Hash(); }
30 Bool_t IsSortable() const { return true; }
31 virtual void PrintOpt( Option_t* opt="" ) const;
32 virtual void SetName(const Text_t *name); // *MENU*
33 virtual void SetNameTitle(const Text_t *name, const Text_t *title);
34 virtual void SetTitle(const Text_t *title="")
35 { fNamed->SetTitle(title); } // *MENU*
36 virtual void ls(Option_t *option="") const;
37 Int_t Sizeof() const { return fNamed->Sizeof(); }
38
39protected:
40 TNamed* fNamed; //Name of the list
41
42 ClassDef(THaNamedList,0) //A list with a name
43};
44
45#endif
46
int Int_t
unsigned long ULong_t
bool Bool_t
char Text_t
const char Option_t
#define ClassDef(name, id)
char name[80]
const Text_t * GetTitle() const
Bool_t IsSortable() const
virtual ULong_t Hash() const
TNamed * fNamed
virtual void PrintOpt(Option_t *opt="") const
virtual void FillBuffer(char *&buffer)
virtual void SetTitle(const Text_t *title="")
virtual Int_t Compare(const TObject *obj) const
virtual void SetNameTitle(const Text_t *name, const Text_t *title)
virtual void SetName(const Text_t *name)
virtual ~THaNamedList()
virtual void ls(Option_t *option="") const
Int_t Sizeof() const
const Text_t * GetName() const
virtual void FillBuffer(char *&buffer)
virtual void SetTitle(const char *title="")
const char * GetName() const override
const char * GetTitle() const override
ULong_t Hash() const override
Int_t Compare(const TObject *obj) const override
virtual Int_t Sizeof() const