Logo ROOT   6.10/09
Reference Guide
RooAbsProxy.cxx
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * @(#)root/roofitcore:$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 
17 #include "RooFit.h"
18 
19 #include "Riostream.h"
20 #include "RooAbsProxy.h"
21 #include "RooAbsProxy.h"
22 #include "RooArgSet.h"
23 #include "RooAbsArg.h"
24 
25 /**
26 \file RooAbsProxy.cxx
27 \class RooAbsProxy
28 \ingroup Roofitcore
29 
30 RooAbsProxy is the abstact interface for proxy classes.
31 Proxy classes hold pointers to other Roofit objects
32 and process serverRedirect changes so that the proxied
33 pointers are updated accordingly on a clone or copy of
34 of the owning class
35 **/
36 
37 
38 using namespace std;
39 
41 ;
42 
43 
44 ////////////////////////////////////////////////////////////////////////////////
45 /// Constructor
46 
48 {
49 }
50 
51 
52 
53 ////////////////////////////////////////////////////////////////////////////////
54 /// Copy constructor
55 
56 RooAbsProxy::RooAbsProxy(const char* /*name*/, const RooAbsProxy& other) :
57  _nset(other._nset)
58 {
59 }
60 
61 
62 ////////////////////////////////////////////////////////////////////////////////
63 /// Destructor
64 
65 void RooAbsProxy::changeNormSet(const RooArgSet* newNormSet)
66 {
67  _nset = (RooArgSet*) newNormSet ;
68 }
69 
70 
71 
72 ////////////////////////////////////////////////////////////////////////////////
73 /// Print proxy name
74 
75 void RooAbsProxy::print(ostream& os, Bool_t /*addContents*/) const
76 {
77  os << name() << endl ;
78 }
virtual const char * name() const
Definition: RooAbsProxy.h:41
bool Bool_t
Definition: RtypesCore.h:59
STL namespace.
RooArgSet * _nset
Definition: RooAbsProxy.h:54
RooAbsProxy is the abstact interface for proxy classes.
Definition: RooAbsProxy.h:31
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
Definition: RooAbsProxy.cxx:65
#define ClassImp(name)
Definition: Rtypes.h:336
RooAbsProxy()
Constructor.
Definition: RooAbsProxy.cxx:47
virtual void print(std::ostream &os, Bool_t addContents=kFALSE) const
Print proxy name.
Definition: RooAbsProxy.cxx:75