Logo ROOT   6.08/07
Reference Guide
RooAbsCache.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
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_ABS_CACHE
17 #define ROO_ABS_CACHE
18 
19 #include "Rtypes.h"
20 #include "Riosfwd.h"
21 
22 class RooAbsArg ;
23 class RooAbsCollection ;
24 class RooArgSet ;
25 class RooArgList ;
26 class RooLinkedList ;
27 
28 class RooAbsCache {
29 
30 public:
31 
32  RooAbsCache(RooAbsArg* owner=0) ;
33  RooAbsCache(const RooAbsCache&, RooAbsArg* owner=0 ) ;
34  virtual Bool_t redirectServersHook(const RooAbsCollection& /*newServerList*/, Bool_t /*mustReplaceAll*/, Bool_t /*nameChange*/, Bool_t /*isRecursive*/) ;
35  virtual void operModeHook() ;
36  virtual void optimizeCacheMode(const RooArgSet&, RooArgSet&, RooLinkedList& ) ;
37  virtual void findConstantNodes(const RooArgSet&, RooArgSet& , RooLinkedList&) ;
38  virtual void printCompactTreeHook(std::ostream&, const char *) ;
39  virtual void wireCache() {} ;
40 
41  virtual ~RooAbsCache() ;
42 
43 protected:
44 
45  RooAbsArg* _owner ; // Pointer to owning RooAbsArg
46 
47  ClassDef(RooAbsCache,1) // Base class for cache managers
48 
49 } ;
50 
51 
52 #endif
virtual void findConstantNodes(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for constant term node finding calls.
virtual void operModeHook()
Interface for operation mode changes.
Definition: RooAbsCache.cxx:99
RooAbsArg * _owner
Definition: RooAbsCache.h:45
bool Bool_t
Definition: RtypesCore.h:59
RooAbsCache is the abstract base class for data members of RooAbsArgs that cache other (composite) Ro...
Definition: RooAbsCache.h:28
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
Interface for server redirect calls.
Definition: RooAbsCache.cxx:89
RooAbsCache(RooAbsArg *owner=0)
Constructor. Takes owner as argument and register cache with owner.
Definition: RooAbsCache.cxx:44
virtual void printCompactTreeHook(std::ostream &, const char *)
Interface for printing of cache guts in tree mode printing.
virtual ~RooAbsCache()
Destructor. Unregisters cache with owner.
Definition: RooAbsCache.cxx:68
virtual void wireCache()
Definition: RooAbsCache.h:39
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Definition: RooLinkedList.h:35
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects...
virtual void optimizeCacheMode(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for processing of cache mode optimization calls.
Definition: RooAbsCache.cxx:80
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Definition: RooAbsArg.h:66