ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
RooNameReg.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* File: $Id: RooNameReg.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_NAME_REG
17
#define ROO_NAME_REG
18
19
#include "
TNamed.h
"
20
21
#include <memory>
22
#include <unordered_map>
23
24
class
RooNameReg :
public
TNamed {
25
public
:
26
27
static
RooNameReg& instance() ;
28
virtual
~RooNameReg();
29
const
TNamed* constPtr(
const
char
* stringPtr) ;
30
const
char
* constStr(
const
TNamed* namePtr) ;
31
static
const
TNamed* ptr(
const
char
* stringPtr) ;
32
static
const
char
* str(
const
TNamed* ptr) ;
33
static
const
TNamed* known(
const
char
* stringPtr) ;
34
35
enum
{
36
kRenamedArg = BIT(19)
// TNamed flag to indicate that some RooAbsArg has been renamed (flag set in new name)
37
};
38
39
protected
:
40
RooNameReg();
41
// RooNameReg(Int_t hashSize = 31) ;
42
RooNameReg(
const
RooNameReg& other) =
delete
;
43
44
std::unordered_map<std::string,std::unique_ptr<TNamed>> _map;
45
46
// ClassDef(RooNameReg,1) // String name registry
47
};
48
49
#endif
50
51
TNamed.h
roofit
roofitcore
inc
RooNameReg.h
Generated on Tue May 5 2020 14:03:21 for ROOT by
1.8.5