Logo ROOT  
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
21class RooAbsArg ;
22class RooAbsCollection ;
23class RooArgSet ;
24class RooArgList ;
25class RooLinkedList ;
26
28
29public:
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
42protected:
43
44 RooAbsArg* _owner ; // Pointer to owning RooAbsArg
45
46 ClassDef(RooAbsCache,1) // Base class for cache managers
47
48} ;
49
50
51#endif
#define ClassDef(name, id)
Definition: Rtypes.h:322
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Definition: RooAbsArg.h:73
RooAbsCache is the abstract base class for data members of RooAbsArgs that cache other (composite) Ro...
Definition: RooAbsCache.h:27
virtual void printCompactTreeHook(std::ostream &, const char *)
Interface for printing of cache guts in tree mode printing.
virtual Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
Interface for server redirect calls.
Definition: RooAbsCache.cxx:89
virtual void optimizeCacheMode(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for processing of cache mode optimization calls.
Definition: RooAbsCache.cxx:80
virtual void operModeHook()
Interface for operation mode changes.
Definition: RooAbsCache.cxx:99
virtual void findConstantNodes(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for constant term node finding calls.
RooAbsCache(RooAbsArg *owner=0)
Constructor. Takes owner as argument and register cache with owner.
Definition: RooAbsCache.cxx:44
RooAbsArg * _owner
Definition: RooAbsCache.h:44
virtual ~RooAbsCache()
Destructor. Unregisters cache with owner.
Definition: RooAbsCache.cxx:68
virtual void wireCache()
Definition: RooAbsCache.h:38
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:21
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Definition: RooLinkedList.h:35