CMS 3D CMS Logo

Classes | Functions
DDValue.h File Reference
#include <atomic>
#include <iostream>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Core/interface/DDValuePair.h"
#include "oneapi/tbb/concurrent_unordered_map.h"
#include "oneapi/tbb/concurrent_vector.h"
#include "FWCore/Utilities/interface/zero_allocator.h"

Go to the source code of this file.

Classes

struct  DDValue::AtomicUInt
 
class  DDValue
 
struct  DDValue::StringHolder
 Only used internally. More...
 

Functions

std::ostream & operator<< (std::ostream &o, const DDValue &v)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  o,
const DDValue v 
)

Definition at line 121 of file DDValue.cc.

References mps_fire::i, EcalTangentSkim_cfg::o, alignCSCRings::s, and findQualityFiles::v.

121  {
122  o << v.name() << " = ";
123  unsigned int i = 0;
124  if (v.isEvaluated()) {
125  for (; i < v.size(); ++i) {
126  o << '(' << v[i].first << ',' << v[i].second << ") ";
127  }
128  } else {
129  const std::vector<std::string>& s = v.strings();
130  for (; i < v.size(); ++i) {
131  o << s[i] << ' ';
132  }
133  }
134  return o;
135 }