Logo ROOT   6.16/01
Reference Guide
RooSharedProperties.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooSharedProperties.h,v 1.3 2007/05/11 09:11:30 verkerke Exp $
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_SHARED_PROPERTY
17#define ROO_ABS_SHARED_PROPERTY
18
19#include "TObject.h"
20#include "TUUID.h"
21#include "TString.h"
22
24public:
25
27 RooSharedProperties(const char* uuidstr) ;
28 virtual ~RooSharedProperties() ;
30
31 virtual RooSharedProperties* clone() = 0 ;
32
33 virtual void Print(Option_t* opts=0) const ;
34
36 void decreaseRefCount() { if (_refCount>0) _refCount-- ; }
37 Int_t refCount() const { return _refCount ; }
38
40 Bool_t inSharedList() const { return _inSharedList ; }
41
43
44protected:
45
46 TUUID _uuid ; // Unique object ID
47 Int_t _refCount ; //! Use count
48 Int_t _inSharedList ; //! Is in shared list
49
50 ClassDef(RooSharedProperties,1) // Abstract interface for shared property implementations
51};
52
53
54#endif
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kTRUE
Definition: RtypesCore.h:87
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:324
Class RooSharedProperties is the base class for shared properties that can be stored in RooSharedProp...
Bool_t operator==(const RooSharedProperties &other)
Return true of unique id of this property is equal to that of other.
virtual void Print(Option_t *opts=0) const
Printing interface.
Bool_t inSharedList() const
RooSharedProperties()
Default constructor.
virtual RooSharedProperties * clone()=0
virtual ~RooSharedProperties()
Destructor.
Int_t _inSharedList
Use count.
Mother of all ROOT objects.
Definition: TObject.h:37
Basic string class.
Definition: TString.h:131
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
Definition: TUUID.h:42
const char * AsString() const
Return UUID as string. Copy string immediately since it will be reused.
Definition: TUUID.cxx:560