Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooSharedProperties.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/**
18\file RooSharedProperties.cxx
19\class RooSharedProperties
20\ingroup Roofitcore
21
22Class RooSharedProperties is the base class for shared properties
23that can be stored in RooSharedPropertiesList.
24**/
25
26#include "RooSharedProperties.h"
27#include "RooMsgService.h"
28#include "RooTrace.h"
29
30#include "Riostream.h"
31using std::cout ;
32using std::endl ;
33
35
36
37////////////////////////////////////////////////////////////////////////////////
38/// Default constructor
39
40RooSharedProperties::RooSharedProperties() : _refCount(0), _inSharedList(false)
41{
42 RooTrace::create(this) ;
43}
44
45
46////////////////////////////////////////////////////////////////////////////////
47/// Constructor with unique-id string
48
49RooSharedProperties::RooSharedProperties(const char* uuidstr) : _uuid(uuidstr), _refCount(0), _inSharedList(false)
50{
51 RooTrace::create(this) ;
52}
53
54
55
56////////////////////////////////////////////////////////////////////////////////
57/// Destructor
58
60{
61 RooTrace::destroy(this) ;
62}
63
64
65
66////////////////////////////////////////////////////////////////////////////////
67/// Return true of unique id of this property is equal to that of other
68
70{
71 return (_uuid==other._uuid) ;
72}
73
74
75////////////////////////////////////////////////////////////////////////////////
76/// Printing interface
77
79{
80 cout << "RooSharedProperties(" << this << ") UUID = " << _uuid.AsString() << endl ;
81}
const char Option_t
Definition RtypesCore.h:66
#define ClassImp(name)
Definition Rtypes.h:382
Class RooSharedProperties is the base class for shared properties that can be stored in RooSharedProp...
bool operator==(const RooSharedProperties &other) const
Return true of unique id of this property is equal to that of other.
~RooSharedProperties() override
Destructor.
RooSharedProperties()
Default constructor.
TUUID _uuid
Unique object ID.
void Print(Option_t *opts=nullptr) const override
Printing interface.
static void destroy(const TObject *obj)
Register deletion of object 'obj'.
Definition RooTrace.cxx:136
static void create(const TObject *obj)
Register creation of object 'obj'.
Definition RooTrace.cxx:123
const char * AsString() const
Return UUID as string. Copy string immediately since it will be reused.
Definition TUUID.cxx:571