Logo ROOT  
Reference Guide
RooDirItem.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooDirItem.h,v 1.6 2007/05/11 09:11:30 verkerke Exp $
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_DIR_ITEM
17 #define ROO_DIR_ITEM
18 
19 #include "Rtypes.h"
20 class TDirectory ;
21 
22 class RooDirItem {
23 public:
24  RooDirItem() { }
25  RooDirItem(const RooDirItem&) { }
26  virtual ~RooDirItem() { }
27 
28 protected:
29 
30  void appendToDir(TObject* obj, Bool_t forceMemoryResident=kFALSE) ;
31  void removeFromDir(TObject* obj) ;
32 
33  TDirectory* _dir{nullptr}; //! Associated directory
34  ClassDef(RooDirItem,1) // Base class for RooFit objects that are listed TDirectories
35 };
36 
37 #endif
RooDirItem::removeFromDir
void removeFromDir(TObject *obj)
Remove object from directory it was added to.
Definition: RooDirItem.cxx:43
RooDirItem::_dir
TDirectory * _dir
Definition: RooDirItem.h:33
RooDirItem
RooDirItem is a utility base class for RooFit objects that are to be attached to ROOT directories.
Definition: RooDirItem.h:22
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
RooDirItem::appendToDir
void appendToDir(TObject *obj, Bool_t forceMemoryResident=kFALSE)
Append object to directory.
Definition: RooDirItem.cxx:55
RooDirItem::~RooDirItem
virtual ~RooDirItem()
Definition: RooDirItem.h:26
RooDirItem::RooDirItem
RooDirItem()
Definition: RooDirItem.h:24
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TDirectory
Describe directory structure in memory.
Definition: TDirectory.h:40
RooDirItem::RooDirItem
RooDirItem(const RooDirItem &)
Definition: RooDirItem.h:25
Rtypes.h