CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DetectorDescription/Core/src/DDValue.cc File Reference

#include "DetectorDescription/Core/interface/DDValue.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <cassert>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 148 of file DDValue.cc.

References i, DDValue::isEvaluated(), DDValue::name(), python::connectstrParser::o, alignCSCRings::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] << ' ';
    }
  }  
  return o;
}
std::ostream& operator<< ( std::ostream &  o,
const DDValuePair v 
)

Definition at line 171 of file DDValue.cc.

{
  return o << v.second;
}