#include "RooFit.h"
#include "RooNameReg.h"
#include "RooNameReg.h"
ClassImp(RooNameReg)
;
RooNameReg* RooNameReg::_instance = 0 ;
RooNameReg::~RooNameReg()
{
}
RooNameReg::RooNameReg(const RooNameReg& other) : TNamed(other)
{
}
RooNameReg& RooNameReg::instance()
{
if (_instance==0) {
_instance = new RooNameReg ;
}
return *_instance ;
}
const TNamed* RooNameReg::constPtr(const char* str) {
if (str==0) return 0 ;
TNamed* t = (TNamed*) _htable.find(str) ;
if (t) return t ;
t = new TNamed(str,str) ;
_htable.add(t) ;
return t ;
}
const char* RooNameReg::constStr(const TNamed* namePtr)
{
if (namePtr) return namePtr->GetName() ;
return 0 ;
}
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.