BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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>
21class MdcMap {
22
23public:
26 bool get(const K& theKey, V& theAnswer) const;
27 V& get(const K& k) const;
28 void put(const K&, const V&);
29 void clear();
30
31private:
32 std::map<K, V> _dict;
33
34 // Preempt
35 MdcMap& operator= (const MdcMap&);
36 MdcMap(const MdcMap &);
37};
38
39//#ifdef BABAR_COMP_INST
40#include "MdcTrkRecon/MdcMap.icc"
41//#endif
42
43#endif
Definition: MdcMap.h:21
bool get(const K &theKey, V &theAnswer) const
void clear()
V & get(const K &k) const
void put(const K &, const V &)