93 if (inStr==0)
return 0 ;
102 t =
new TNamed(inStr,inStr) ;
116 if (namePtr)
return namePtr->
GetName() ;
126 if (stringPtr==0)
return 0 ;
136 if (ptr==0)
return 0 ;
147 if (inStr==0)
return 0 ;
TObject * find(const char *name) const
Return the object with given name from the table.
static const char * str(const TNamed *ptr)
Return C++ string corresponding to given TNamed pointer.
static void cleanup()
Cleanup function called by atexit() handler installed by RooSentinel to delete global objects on heap...
The TNamed class is the base class for all named ROOT classes.
static const TNamed * known(const char *stringPtr)
If the name is already known, return its TNamed pointer. Otherwise return 0 (don't register the name)...
static RooNameReg & instance()
Return reference to singleton instance.
virtual void Add(TObject *arg)
void add(TObject *arg, TObject *hashArg=0)
Add given object to table.
static const TNamed * ptr(const char *stringPtr)
Return a unique TNamed pointer for given C++ string.
virtual ~RooNameReg()
Destructor.
virtual const char * GetName() const
Returns name of object.
static void activate()
Install atexit handler that calls CleanupRooFitAtExit() on program termination.
void Delete(Option_t *o=0)
Remove all elements in collection and delete all elements NB: Collection does not own elements...
RooNameReg(Int_t hashSize=31)
const TNamed * constPtr(const char *stringPtr)
Return a unique TNamed pointer for given C++ string.
static RooNameReg * _instance
const char * constStr(const TNamed *namePtr)
Return C++ string corresponding to given TNamed pointer.