Logo ROOT   6.10/09
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 
21 class RooAbsArg ;
22 class RooAbsCollection ;
23 class RooArgSet ;
24 class RooArgList ;
25 class RooLinkedList ;
26 
27 class RooAbsCache {
28 
29 public:
30 
31  RooAbsCache(RooAbsArg* owner=0) ;
32  RooAbsCache(const RooAbsCache&, RooAbsArg* owner=0 ) ;
33  virtual Bool_t redirectServersHook(const RooAbsCollection& /*newServerList*/, Bool_t /*mustReplaceAll*/, Bool_t /*nameChange*/, Bool_t /*isRecursive*/) ;
34  virtual void operModeHook() ;
35  virtual void optimizeCacheMode(const RooArgSet&, RooArgSet&, RooLinkedList& ) ;
36  virtual void findConstantNodes(const RooArgSet&, RooArgSet& , RooLinkedList&) ;
37  virtual void printCompactTreeHook(std::ostream&, const char *) ;
38  virtual void wireCache() {} ;
39 
40  virtual ~RooAbsCache() ;
41 
42 protected:
43 
44  RooAbsArg* _owner ; // Pointer to owning RooAbsArg
45 
46  ClassDef(RooAbsCache,1) // Base class for cache managers
47 
48 } ;
49 
50 
51 #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:44
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:27
#define ClassDef(name, id)
Definition: Rtypes.h:297
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:38
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