ATLAS Offline Software
MapDumper.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
16 #include <map>
17 #include <string>
18 #include <vector>
19 
20 
21 #ifndef D3PDMAKERTEST_MAPDUMPER_H
22 #define D3PDMAKERTEST_MAPDUMPER_H
23 
24 
25 namespace D3PDTest {
26 
27 
28 class MapDumper
29 {
30 public:
31  typedef std::map<std::string, int> mapi_t;
32  static void dump (const mapi_t& map);
33  static std::vector<std::string> keys (const mapi_t& map);
34  static std::vector<int> values (const mapi_t& map);
35  static bool equal (const mapi_t& m1, const mapi_t& m2);
36 
37  typedef std::map<std::string, float> mapf_t;
38  static void dump (const mapf_t& map);
39  static std::vector<std::string> keys (const mapf_t& map);
40  static std::vector<float> values (const mapf_t& map);
41  static bool equal (const mapf_t& m1, const mapf_t& m2);
42 
43  typedef std::map<std::string, std::string> maps_t;
44  static void dump (const maps_t& map);
45  static std::vector<std::string> keys (const maps_t& map);
46  static std::vector<std::string> values (const maps_t& map);
47  static bool equal (const maps_t& m1, const maps_t& m2);
48 };
49 
50 
51 } // namespace D3PDTest
52 
53 
54 #endif // not D3PDMAKERTEST_MAPDUMPER_H
python.SystemOfUnits.m2
int m2
Definition: SystemOfUnits.py:92
D3PDTest::MapDumper::equal
static bool equal(const mapi_t &m1, const mapi_t &m2)
Definition: MapDumper.cxx:59
D3PDTest::MapDumper
Definition: MapDumper.h:29
D3PDTest::MapDumper::values
static std::vector< int > values(const mapi_t &map)
Definition: MapDumper.cxx:46
python.changerun.m1
m1
Definition: changerun.py:32
D3PDTest::MapDumper::dump
static void dump(const mapi_t &map)
Definition: MapDumper.cxx:23
D3PDTest::MapDumper::mapf_t
std::map< std::string, float > mapf_t
Definition: MapDumper.h:37
D3PDTest::MapDumper::maps_t
std::map< std::string, std::string > maps_t
Definition: MapDumper.h:43
D3PDTest
Definition: MapDumper.h:25
D3PDTest::MapDumper::keys
static std::vector< std::string > keys(const mapi_t &map)
Definition: MapDumper.cxx:33
D3PDTest::MapDumper::mapi_t
std::map< std::string, int > mapi_t
Definition: MapDumper.h:31