ATLAS Offline Software
Public Types | Static Public Member Functions | List of all members
D3PDTest::MapDumper Class Reference

#include <MapDumper.h>

Collaboration diagram for D3PDTest::MapDumper:

Public Types

typedef std::map< std::string, int > mapi_t
 
typedef std::map< std::string, float > mapf_t
 
typedef std::map< std::string, std::string > maps_t
 

Static Public Member Functions

static void dump (const mapi_t &map)
 
static std::vector< std::string > keys (const mapi_t &map)
 
static std::vector< int > values (const mapi_t &map)
 
static bool equal (const mapi_t &m1, const mapi_t &m2)
 
static void dump (const mapf_t &map)
 
static std::vector< std::string > keys (const mapf_t &map)
 
static std::vector< float > values (const mapf_t &map)
 
static bool equal (const mapf_t &m1, const mapf_t &m2)
 
static void dump (const maps_t &map)
 
static std::vector< std::string > keys (const maps_t &map)
 
static std::vector< std::string > values (const maps_t &map)
 
static bool equal (const maps_t &m1, const maps_t &m2)
 

Detailed Description

Definition at line 28 of file MapDumper.h.

Member Typedef Documentation

◆ mapf_t

typedef std::map<std::string, float> D3PDTest::MapDumper::mapf_t

Definition at line 37 of file MapDumper.h.

◆ mapi_t

typedef std::map<std::string, int> D3PDTest::MapDumper::mapi_t

Definition at line 31 of file MapDumper.h.

◆ maps_t

typedef std::map<std::string, std::string> D3PDTest::MapDumper::maps_t

Definition at line 43 of file MapDumper.h.

Member Function Documentation

◆ dump() [1/3]

void D3PDTest::MapDumper::dump ( const mapf_t map)
static

Definition at line 65 of file MapDumper.cxx.

66 {
67  mapf_t::const_iterator it = map.begin();
68  mapf_t::const_iterator end = map.end();
69  for (; it != end; ++it) {
70  std::cout << it->first << " " << it->second << "\n";
71  }
72 }

◆ dump() [2/3]

void D3PDTest::MapDumper::dump ( const mapi_t map)
static

Definition at line 23 of file MapDumper.cxx.

24 {
25  mapi_t::const_iterator it = map.begin();
26  mapi_t::const_iterator end = map.end();
27  for (; it != end; ++it) {
28  std::cout << it->first << " " << it->second << "\n";
29  }
30 }

◆ dump() [3/3]

void D3PDTest::MapDumper::dump ( const maps_t map)
static

Definition at line 107 of file MapDumper.cxx.

108 {
109  maps_t::const_iterator it = map.begin();
110  maps_t::const_iterator end = map.end();
111  for (; it != end; ++it) {
112  std::cout << it->first << " " << it->second << "\n";
113  }
114 }

◆ equal() [1/3]

bool D3PDTest::MapDumper::equal ( const mapf_t m1,
const mapf_t m2 
)
static

Definition at line 101 of file MapDumper.cxx.

102 {
103  return m1 == m2;
104 }

◆ equal() [2/3]

bool D3PDTest::MapDumper::equal ( const mapi_t m1,
const mapi_t m2 
)
static

Definition at line 59 of file MapDumper.cxx.

60 {
61  return m1 == m2;
62 }

◆ equal() [3/3]

bool D3PDTest::MapDumper::equal ( const maps_t m1,
const maps_t m2 
)
static

Definition at line 143 of file MapDumper.cxx.

144 {
145  return m1 == m2;
146 }

◆ keys() [1/3]

std::vector< std::string > D3PDTest::MapDumper::keys ( const mapf_t map)
static

Definition at line 75 of file MapDumper.cxx.

76 {
77  std::vector<std::string> out;
78  out.reserve (map.size());
79  mapf_t::const_iterator it = map.begin();
80  mapf_t::const_iterator end = map.end();
81  for (; it != end; ++it) {
82  out.push_back (it->first);
83  }
84  return out;
85 }

◆ keys() [2/3]

std::vector< std::string > D3PDTest::MapDumper::keys ( const mapi_t map)
static

Definition at line 33 of file MapDumper.cxx.

34 {
35  std::vector<std::string> out;
36  out.reserve (map.size());
37  mapi_t::const_iterator it = map.begin();
38  mapi_t::const_iterator end = map.end();
39  for (; it != end; ++it) {
40  out.push_back (it->first);
41  }
42  return out;
43 }

◆ keys() [3/3]

std::vector< std::string > D3PDTest::MapDumper::keys ( const maps_t map)
static

Definition at line 117 of file MapDumper.cxx.

118 {
119  std::vector<std::string> out;
120  out.reserve (map.size());
121  maps_t::const_iterator it = map.begin();
122  maps_t::const_iterator end = map.end();
123  for (; it != end; ++it) {
124  out.push_back (it->first);
125  }
126  return out;
127 }

◆ values() [1/3]

std::vector< float > D3PDTest::MapDumper::values ( const mapf_t map)
static

Definition at line 88 of file MapDumper.cxx.

89 {
90  std::vector<float> out;
91  out.reserve (map.size());
92  mapf_t::const_iterator it = map.begin();
93  mapf_t::const_iterator end = map.end();
94  for (; it != end; ++it) {
95  out.push_back (it->second);
96  }
97  return out;
98 }

◆ values() [2/3]

std::vector< int > D3PDTest::MapDumper::values ( const mapi_t map)
static

Definition at line 46 of file MapDumper.cxx.

47 {
48  std::vector<int> out;
49  out.reserve (map.size());
50  mapi_t::const_iterator it = map.begin();
51  mapi_t::const_iterator end = map.end();
52  for (; it != end; ++it) {
53  out.push_back (it->second);
54  }
55  return out;
56 }

◆ values() [3/3]

std::vector< std::string > D3PDTest::MapDumper::values ( const maps_t map)
static

Definition at line 130 of file MapDumper.cxx.

131 {
132  std::vector<std::string> out;
133  out.reserve (map.size());
134  maps_t::const_iterator it = map.begin();
135  maps_t::const_iterator end = map.end();
136  for (; it != end; ++it) {
137  out.push_back (it->second);
138  }
139  return out;
140 }

The documentation for this class was generated from the following files:
python.SystemOfUnits.m2
int m2
Definition: SystemOfUnits.py:92
skel.it
it
Definition: skel.GENtoEVGEN.py:423
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
python.changerun.m1
m1
Definition: changerun.py:32