/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Id$
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/

//////////////////////////////////////////////////////////////////////////////
//
// BEGIN_HTML
// Class RooSharedProperties is the base class for shared properties
// that can be stored in RooSharedPropertiesList.
// END_HTML
//

#include "RooFit.h"
#include "RooSharedProperties.h"
#include "RooMsgService.h"
#include "RooTrace.h"

#include "Riostream.h"
using std::cout ;
using std::endl ;

using namespace std;

ClassImp(RooSharedProperties)
;



//_____________________________________________________________________________
RooSharedProperties::RooSharedProperties() : _refCount(0), _inSharedList(kFALSE)
{
  // Default constructor
  RooTrace::create(this) ;
} 


//_____________________________________________________________________________
RooSharedProperties::RooSharedProperties(const char* uuidstr) : _uuid(uuidstr), _refCount(0), _inSharedList(kFALSE)
{
  // Constructor with unique-id string
  RooTrace::create(this) ;
} 



//_____________________________________________________________________________
RooSharedProperties::~RooSharedProperties() 
{
  // Destructor
  RooTrace::destroy(this) ;
} 



//_____________________________________________________________________________
Bool_t RooSharedProperties::operator==(const RooSharedProperties& other) 
{
  // Return true of unique id of this property is equal to that of other
  return (_uuid==other._uuid) ;
}


//_____________________________________________________________________________
void RooSharedProperties::Print(Option_t* /*opts*/) const 
{
  // Printing interface
  cout << "RooSharedProperties(" << this << ") UUID = " << _uuid.AsString() << endl ;
}
 RooSharedProperties.cxx:1
 RooSharedProperties.cxx:2
 RooSharedProperties.cxx:3
 RooSharedProperties.cxx:4
 RooSharedProperties.cxx:5
 RooSharedProperties.cxx:6
 RooSharedProperties.cxx:7
 RooSharedProperties.cxx:8
 RooSharedProperties.cxx:9
 RooSharedProperties.cxx:10
 RooSharedProperties.cxx:11
 RooSharedProperties.cxx:12
 RooSharedProperties.cxx:13
 RooSharedProperties.cxx:14
 RooSharedProperties.cxx:15
 RooSharedProperties.cxx:16
 RooSharedProperties.cxx:17
 RooSharedProperties.cxx:18
 RooSharedProperties.cxx:19
 RooSharedProperties.cxx:20
 RooSharedProperties.cxx:21
 RooSharedProperties.cxx:22
 RooSharedProperties.cxx:23
 RooSharedProperties.cxx:24
 RooSharedProperties.cxx:25
 RooSharedProperties.cxx:26
 RooSharedProperties.cxx:27
 RooSharedProperties.cxx:28
 RooSharedProperties.cxx:29
 RooSharedProperties.cxx:30
 RooSharedProperties.cxx:31
 RooSharedProperties.cxx:32
 RooSharedProperties.cxx:33
 RooSharedProperties.cxx:34
 RooSharedProperties.cxx:35
 RooSharedProperties.cxx:36
 RooSharedProperties.cxx:37
 RooSharedProperties.cxx:38
 RooSharedProperties.cxx:39
 RooSharedProperties.cxx:40
 RooSharedProperties.cxx:41
 RooSharedProperties.cxx:42
 RooSharedProperties.cxx:43
 RooSharedProperties.cxx:44
 RooSharedProperties.cxx:45
 RooSharedProperties.cxx:46
 RooSharedProperties.cxx:47
 RooSharedProperties.cxx:48
 RooSharedProperties.cxx:49
 RooSharedProperties.cxx:50
 RooSharedProperties.cxx:51
 RooSharedProperties.cxx:52
 RooSharedProperties.cxx:53
 RooSharedProperties.cxx:54
 RooSharedProperties.cxx:55
 RooSharedProperties.cxx:56
 RooSharedProperties.cxx:57
 RooSharedProperties.cxx:58
 RooSharedProperties.cxx:59
 RooSharedProperties.cxx:60
 RooSharedProperties.cxx:61
 RooSharedProperties.cxx:62
 RooSharedProperties.cxx:63
 RooSharedProperties.cxx:64
 RooSharedProperties.cxx:65
 RooSharedProperties.cxx:66
 RooSharedProperties.cxx:67
 RooSharedProperties.cxx:68
 RooSharedProperties.cxx:69
 RooSharedProperties.cxx:70
 RooSharedProperties.cxx:71
 RooSharedProperties.cxx:72
 RooSharedProperties.cxx:73
 RooSharedProperties.cxx:74
 RooSharedProperties.cxx:75
 RooSharedProperties.cxx:76
 RooSharedProperties.cxx:77
 RooSharedProperties.cxx:78
 RooSharedProperties.cxx:79
 RooSharedProperties.cxx:80