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
31class TSelectorList : public THashList {
32
33private:
36
37public:
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
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:326
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
Definition: THashList.h:34
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:31
void AddLast(TObject *obj)
Add at the end of the list.
void AddFirst(TObject *obj)
Add at the start of the list.
Bool_t UnsetDirectory(TObject *obj)
If the class of obj has the SetDirectory(TDirectory*) method call it to unset the directory assiciati...
void AddAfter(const TObject *after, TObject *obj)
Add to the list.
void AddAt(TObject *obj, Int_t idx)
Add to the list.
Bool_t CheckDuplicateName(TObject *obj)
Check for duplicate object names in the list.
void AddBefore(const TObject *before, TObject *obj)
Add to the list.