/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-45/MdcTrkRecon/MdcMap.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: MdcMap.h,v 1.1.1.1 2005/04/21 06:23:43 maqm Exp $
00004 //
00005 // Description:
00006 //     Dictionary to associate a value (size_t) with a key (long).  This
00007 // could undoubtedly be templated (cf DchHitDict), but I'm too lazy to do so.
00008 //
00009 // Environment:
00010 //      Software developed for the BaBar Detector at the SLAC B-Factory.
00011 //
00012 // Author(s): Gerhard Raven
00013 //
00014 //------------------------------------------------------------------------
00015 #ifndef MDCMAP_HH
00016 #define MDCMAP_HH
00017 #include <map>
00018 
00019 // Class interface //
00020 template <class K, class V>
00021 class MdcMap {
00022 
00023 public:
00024   MdcMap();
00025   ~MdcMap();
00026   bool get(const K& theKey, V& theAnswer) const;
00027   V& get(const K& k) const;
00028   void put(const K&, const V&);
00029   void clear();
00030 
00031 private:
00032   std::map<K, V> _dict;
00033 
00034   // Preempt
00035   MdcMap&   operator= (const MdcMap&);
00036   MdcMap(const MdcMap &);
00037 };
00038 
00039 //#ifdef BABAR_COMP_INST
00040 #include "MdcTrkRecon/MdcMap.icc"
00041 //#endif
00042 
00043 #endif

Generated on Tue Nov 29 23:13:33 2016 for BOSS_7.0.2 by  doxygen 1.4.7