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
33 RooAbsCache(const RooAbsCache&, RooAbsArg* owner=0 ) ;
34
35 virtual ~RooAbsCache() ;
36
37 void setOwner(RooAbsArg* owner);
38
39 /// Interface for server redirect calls.
40 virtual Bool_t redirectServersHook(const RooAbsCollection& /*newServerList*/,
41 bool /*mustReplaceAll*/,
42 bool /*nameChange*/,
43 bool /*isRecursive*/) { return false; }
44
45 /// Interface for operation mode changes.
46 virtual void operModeHook() {}
47
48 /// Interface for processing of cache mode optimization calls.
50
51 /// Interface for constant term node finding calls.
53
54 /// Interface for printing of cache guts in tree mode printing.
55 virtual void printCompactTreeHook(std::ostream&, const char *) {}
56
57 virtual void wireCache() {}
58
59protected:
60
61 RooAbsArg* _owner ; // Pointer to owning RooAbsArg
62
63 ClassDef(RooAbsCache,1) // Base class for cache managers
64
65} ;
66
67
68#endif
bool Bool_t
Definition: RtypesCore.h:63
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
Definition: RooAbsArg.h:72
RooAbsCache is the abstract base class for data members of RooAbsArgs that cache other (composite) Ro...
Definition: RooAbsCache.h:27
virtual void operModeHook()
Interface for operation mode changes.
Definition: RooAbsCache.h:46
void setOwner(RooAbsArg *owner)
Reset the owner, triggering the owner to register this cache in its list of caches.
Definition: RooAbsCache.cxx:76
virtual void findConstantNodes(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for constant term node finding calls.
Definition: RooAbsCache.h:52
virtual Bool_t redirectServersHook(const RooAbsCollection &, bool, bool, bool)
Interface for server redirect calls.
Definition: RooAbsCache.h:40
virtual void printCompactTreeHook(std::ostream &, const char *)
Interface for printing of cache guts in tree mode printing.
Definition: RooAbsCache.h:55
RooAbsCache(RooAbsArg *owner=0)
Constructor. Takes owner as argument and register cache with owner.
Definition: RooAbsCache.cxx:44
RooAbsArg * _owner
Definition: RooAbsCache.h:61
virtual ~RooAbsCache()
Destructor. Unregisters cache with owner.
Definition: RooAbsCache.cxx:66
virtual void optimizeCacheMode(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for processing of cache mode optimization calls.
Definition: RooAbsCache.h:49
virtual void wireCache()
Definition: RooAbsCache.h:57
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:22
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:35
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Definition: RooLinkedList.h:38