CMS 3D CMS Logo

DTKeyedConfigCache.h
Go to the documentation of this file.
1 #ifndef CondTools_DT_DTKeyedConfigCache_h
2 #define CondTools_DT_DTKeyedConfigCache_h
3 
17 #include <map>
18 #include <string>
19 #include <vector>
20 
22 
23 class DTKeyedConfig;
24 
25 // ---------------------
26 // -- Class Interface --
27 // ---------------------
28 
30 public:
32  virtual ~DTKeyedConfigCache();
33 
34  int get(const cond::persistency::KeyList& keyList, int cfgId, const DTKeyedConfig*& obj);
35 
36  void getData(const cond::persistency::KeyList& keyList, int cfgId, std::vector<std::string>& list);
37 
38  void purge();
39 
40  static const int maxBrickNumber;
41  static const int maxStringNumber;
42  static const int maxByteNumber;
43 
44 private:
45  DTKeyedConfigCache(const DTKeyedConfigCache& x) = delete;
46  const DTKeyedConfigCache& operator=(const DTKeyedConfigCache& x) = delete;
47 
48  typedef std::pair<int, const DTKeyedConfig*> counted_brick;
49  std::map<int, counted_brick> brickMap;
53 };
54 #endif
DTKeyedConfigCache::DTKeyedConfigCache
DTKeyedConfigCache()
Definition: DTKeyedConfigCache.cc:35
DTKeyedConfigCache::maxStringNumber
static const int maxStringNumber
Definition: DTKeyedConfigCache.h:41
DTKeyedConfigCache::getData
void getData(const cond::persistency::KeyList &keyList, int cfgId, std::vector< std::string > &list)
Definition: DTKeyedConfigCache.cc:115
DTKeyedConfigCache::brickMap
std::map< int, counted_brick > brickMap
Definition: DTKeyedConfigCache.h:49
DDAxes::x
DTKeyedConfigCache::operator=
const DTKeyedConfigCache & operator=(const DTKeyedConfigCache &x)=delete
DTKeyedConfigCache::cachedBrickNumber
int cachedBrickNumber
Definition: DTKeyedConfigCache.h:50
DTKeyedConfigCache
Definition: DTKeyedConfigCache.h:29
DTKeyedConfigCache::counted_brick
std::pair< int, const DTKeyedConfig * > counted_brick
Definition: DTKeyedConfigCache.h:48
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
DTKeyedConfigCache::cachedByteNumber
int cachedByteNumber
Definition: DTKeyedConfigCache.h:52
DTKeyedConfig
Definition: DTKeyedConfig.h:35
DTKeyedConfigCache::maxByteNumber
static const int maxByteNumber
Definition: DTKeyedConfigCache.h:42
DTKeyedConfigCache::maxBrickNumber
static const int maxBrickNumber
Definition: DTKeyedConfigCache.h:40
DTKeyedConfigCache::~DTKeyedConfigCache
virtual ~DTKeyedConfigCache()
Definition: DTKeyedConfigCache.cc:40
DTKeyedConfigCache::purge
void purge()
Definition: DTKeyedConfigCache.cc:131
KeyList.h
DTKeyedConfigCache::get
int get(const cond::persistency::KeyList &keyList, int cfgId, const DTKeyedConfig *&obj)
Definition: DTKeyedConfigCache.cc:42
cond::persistency::KeyList
Definition: KeyList.h:33
DTKeyedConfigCache::cachedStringNumber
int cachedStringNumber
Definition: DTKeyedConfigCache.h:51