CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/DetectorDescription/Core/src/DDMap.cc File Reference

#include "DetectorDescription/Core/interface/DDMap.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDMap &cons)
 output operator for printing ...

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDMap cons 
)

output operator for printing ...

Definition at line 17 of file DDMap.cc.

References DDBase< N, C >::isDefined(), DDBase< N, C >::name(), DDMap::size(), and DDMap::values().

{
  os << "DDMap name=" << cons.name(); 
  
  if(cons.isDefined().second) {
    os << " size=" << cons.size() << " vals=( ";
    DDMap::value_type::const_iterator it(cons.values().begin()), ed(cons.values().end());
    for(; it != ed; ++it) {
      os << it->first << '=' << it->second << ' ';
    }
    os << ')';
  }
  else {
    os << " DDMap is not yet defined, only declared.";
  }  
  return os;
}