Logo ROOT  
Reference Guide
TSelectorList.h
Go to the documentation of this file.
1 // @(#)root/tree:$Id$
2 // Author: Fons Rademakers 7/11/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TSelectorList
13 #define ROOT_TSelectorList
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TSelectorList //
19 // //
20 // A THashList derived class that makes sure that objects added to it //
21 // are not linked to the currently open file (like histograms, //
22 // eventlists and trees). Also it makes sure the name of the added //
23 // object is unique. This class is used in the TSelector for the //
24 // output list. //
25 // //
26 //////////////////////////////////////////////////////////////////////////
27 
28 #include "THashList.h"
29 
30 
31 class TSelectorList : public THashList {
32 
33 private:
36 
37 public:
38  TSelectorList() : THashList() { SetOwner();}
39 
40  void AddFirst(TObject *obj);
41  void AddFirst(TObject *obj, Option_t *opt);
42  void AddLast(TObject *obj);
43  void AddLast(TObject *obj, Option_t *opt);
44  void AddAt(TObject *obj, Int_t idx);
45  void AddAfter(const TObject *after, TObject *obj);
46  void AddAfter(TObjLink *after, TObject *obj);
47  void AddBefore(const TObject *before, TObject *obj);
48  void AddBefore(TObjLink *before, TObject *obj);
49 
50  ClassDef(TSelectorList,1) //Special TList used in the TSelector
51 };
52 
53 #endif
THashList::THashList
THashList(const THashList &)
TSelectorList::AddAt
void AddAt(TObject *obj, Int_t idx)
Add to the list.
Definition: TSelectorList.cxx:117
TCollection::SetOwner
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
Definition: TCollection.cxx:746
bool
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TSelectorList::AddAfter
void AddAfter(const TObject *after, TObject *obj)
Add to the list.
Definition: TSelectorList.cxx:127
TSelectorList::AddLast
void AddLast(TObject *obj)
Add at the end of the list.
Definition: TSelectorList.cxx:97
THashList
Definition: THashList.h:34
THashList.h
TSelectorList::AddBefore
void AddBefore(const TObject *before, TObject *obj)
Add to the list.
Definition: TSelectorList.cxx:147
TSelectorList::AddFirst
void AddFirst(TObject *obj)
Add at the start of the list.
Definition: TSelectorList.cxx:77
TObject
Definition: TObject.h:37
TSelectorList
Definition: TSelectorList.h:31
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TSelectorList::TSelectorList
TSelectorList()
Definition: TSelectorList.h:44
TSelectorList::CheckDuplicateName
Bool_t CheckDuplicateName(TObject *obj)
Check for duplicate object names in the list.
Definition: TSelectorList.cxx:55
TSelectorList::UnsetDirectory
Bool_t UnsetDirectory(TObject *obj)
If the class of obj has the SetDirectory(TDirectory*) method call it to unset the directory assiciati...
Definition: TSelectorList.cxx:33
int