CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDValuePair.h
Go to the documentation of this file.
1 #ifndef DDValuePair_h
2 #define DDValuePair_h
3 
4 #include <string>
5 #include <map>
6 //#include <utility>
7 
8 struct DDValuePair : public std::pair<std::string,double>
9 {
11  DDValuePair(const std::string & s, double d) : std::pair<std::string,double>(s,d) { }
12  DDValuePair(const std::string & s) : std::pair<std::string,double>(s,0) { }
13  DDValuePair(double d) : std::pair<std::string,double>("",d) { }
14 
15  operator const std::string&() const { return first; }
16  operator std::string&() { return first; }
17  operator const double&() const { return second; }
18  operator double&() { return second; }
19 
20 };
21 
22 std::ostream & operator<<(std::ostream & o, const DDValuePair & v);
23 
24 
25 #endif
DDValuePair(const std::string &s)
Definition: DDValuePair.h:12
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
DDValuePair(const std::string &s, double d)
Definition: DDValuePair.h:11
U second(std::pair< T, U > const &p)
DDValuePair(double d)
Definition: DDValuePair.h:13
bool first
Definition: L1TdeRCT.cc:79