RooNameReg.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooNameReg.h,v 1.3 2007/05/11 09:11:30 verkerke Exp $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 #ifndef ROO_NAME_REG
00017 #define ROO_NAME_REG
00018 
00019 #include "TNamed.h"
00020 #include "RooHashTable.h"
00021 #include "RooLinkedList.h"
00022 
00023 class RooNameReg : public TNamed {
00024 public:
00025 
00026   static RooNameReg& instance() ;
00027   virtual ~RooNameReg();
00028   const TNamed* constPtr(const char* stringPtr) ;
00029   const char* constStr(const TNamed* namePtr) ; 
00030   static const TNamed* ptr(const char* stringPtr) ;
00031   static const char* str(const TNamed* ptr) ;
00032 
00033   static void cleanup() ;
00034 
00035 protected:
00036 
00037   static RooNameReg* _instance ;
00038 
00039   RooNameReg() : TNamed("RooNameReg","RooFit Name Registry"), _htable(31) {} 
00040   RooNameReg(const RooNameReg& other) ;
00041 
00042   RooHashTable _htable ; // Repository of registered names
00043   RooLinkedList _list ; // 
00044 
00045   ClassDef(RooNameReg,1) // String name registry
00046 };
00047 
00048 #endif
00049 
00050 

Generated on Tue Jul 5 14:26:14 2011 for ROOT_528-00b_version by  doxygen 1.5.1