CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/DetectorDescription/Core/interface/DDValue.h File Reference

#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

Functions

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

Function Documentation

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

Definition at line 163 of file DDValue.cc.

References i, DDValue::isEvaluated(), DDValue::name(), connectstrParser::o, asciidump::s, DDValue::size(), and DDValue::strings().

{
  o << v.name() << " = ";
  unsigned int i = 0;
  if (v.isEvaluated()) {
    for (; i<v.size(); ++i) {
      o << '(' << v[i].first << ',' << v[i].second << ") ";
    }  
  } else {
    const std::vector<std::string> & s = v.strings();
    for (; i<v.size(); ++i) {
      o << s[i] << ' ';
      //o << '(' << s << ',' << double(v[i].second) << ") ";
    }
  }  
  return o;
}