Logo ROOT   6.08/07
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 #ifndef ROOT_THashList
29 #include "THashList.h"
30 #endif
31 
32 
33 class TSelectorList : public THashList {
34 
35 private:
38 
39 public:
41 
42  void AddFirst(TObject *obj);
43  void AddFirst(TObject *obj, Option_t *opt);
44  void AddLast(TObject *obj);
45  void AddLast(TObject *obj, Option_t *opt);
46  void AddAt(TObject *obj, Int_t idx);
47  void AddAfter(const TObject *after, TObject *obj);
48  void AddAfter(TObjLink *after, TObject *obj);
49  void AddBefore(const TObject *before, TObject *obj);
50  void AddBefore(TObjLink *before, TObject *obj);
51 
52  ClassDef(TSelectorList,1) //Special TList used in the TSelector
53 };
54 
55 #endif
void AddAt(TObject *obj, Int_t idx)
Add to the list.
void AddBefore(const TObject *before, TObject *obj)
Add to the list.
const char Option_t
Definition: RtypesCore.h:62
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Bool_t CheckDuplicateName(TObject *obj)
Check for duplicate object names in the list.
Bool_t UnsetDirectory(TObject *obj)
If the class of obj has the SetDirectory(TDirectory*) method call it to unset the directory assiciati...
#define ClassDef(name, id)
Definition: Rtypes.h:254
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
Definition: THashList.h:36
void AddFirst(TObject *obj)
Add at the start of the list.
void AddLast(TObject *obj)
Add at the end of the list.
void AddAfter(const TObject *after, TObject *obj)
Add to the list.
Mother of all ROOT objects.
Definition: TObject.h:37
A TList derived class that makes sure that objects added to it are not linked to the currently open f...
Definition: TSelectorList.h:33