BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcTrkRecon/include/MdcTrkRecon/MdcMap.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: MdcMap.h,v 1.1.1.1 2005/04/21 06:23:43 maqm Exp $
4//
5// Description:
6// Dictionary to associate a value (size_t) with a key (long). This
7// could undoubtedly be templated (cf DchHitDict), but I'm too lazy to do so.
8//
9// Environment:
10// Software developed for the BaBar Detector at the SLAC B-Factory.
11//
12// Author(s): Gerhard Raven
13//
14//------------------------------------------------------------------------
15#ifndef MDCMAP_HH
16#define MDCMAP_HH
17#include <map>
18
19// Class interface //
20template <class K, class V> class MdcMap {
21
22public:
25 bool get( const K& theKey, V& theAnswer ) const;
26 V& get( const K& k ) const;
27 void put( const K&, const V& );
28 void clear();
29
30private:
31 std::map<K, V> _dict;
32
33 // Preempt
34 MdcMap& operator=( const MdcMap& );
35 MdcMap( const MdcMap& );
36};
37
38// #ifdef BABAR_COMP_INST
39#include "MdcTrkRecon/MdcMap.icc"
40// #endif
41
42#endif
bool get(const K &theKey, V &theAnswer) const
void clear()
V & get(const K &k) const
void put(const K &, const V &)