CMS 3D CMS Logo

Classes | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/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 "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 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;
}