Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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) override;
41 void AddFirst(TObject *obj, Option_t *opt) override;
42 void AddLast(TObject *obj) override;
43 void AddLast(TObject *obj, Option_t *opt) override;
44 void AddAt(TObject *obj, Int_t idx) override;
45 void AddAfter(const TObject *after, TObject *obj) override;
46 void AddAfter(TObjLink *after, TObject *obj) override;
47 void AddBefore(const TObject *before, TObject *obj) override;
48 void AddBefore(TObjLink *before, TObject *obj) override;
49
50 ClassDefOverride(TSelectorList,1) //Special TList used in the TSelector
51};
52
53#endif
int Int_t
Definition RtypesCore.h:45
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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:41
A TList derived class that makes sure that objects added to it are not linked to the currently open f...
void AddBefore(const TObject *before, TObject *obj) override
Add to the list.
void AddFirst(TObject *obj) override
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 associati...
void AddAt(TObject *obj, Int_t idx) override
Add to the list.
void AddLast(TObject *obj) override
Add at the end of the list.
void AddAfter(const TObject *after, TObject *obj) override
Add to the list.
Bool_t CheckDuplicateName(TObject *obj)
Check for duplicate object names in the list.