#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <memory>
#include "DetectorDescription/Core/interface/DDValuePair.h"
#include "DetectorDescription/Base/interface/Ptr.h"
#include "boost/shared_ptr.hpp"
Go to the source code of this file.
Classes | |
class | DDValue |
A DDValue std::maps a std::vector of DDValuePair (std::string,double) to a name. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &o, const DDValue &v) |
std::ostream& operator<< | ( | std::ostream & | o, | |
const DDValue & | v | |||
) |
Definition at line 192 of file DDValue.cc.
References i, DDValue::isEvaluated(), DDValue::name(), s, DDValue::size(), and DDValue::strings().
00193 { 00194 o << v.name() << " = "; 00195 unsigned int i = 0; 00196 if (v.isEvaluated()) { 00197 for (; i<v.size(); ++i) { 00198 o << '(' << v[i].first << ',' << v[i].second << ") "; 00199 } 00200 } else { 00201 const std::vector<std::string> & s = v.strings(); 00202 for (; i<v.size(); ++i) { 00203 o << s[i] << ' '; 00204 //o << '(' << s << ',' << double(v[i].second) << ") "; 00205 } 00206 } 00207 return o; 00208 }