CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_0/src/DetectorDescription/Core/src/DDVector.cc File Reference

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

Go to the source code of this file.

Functions

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

Function Documentation

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

output operator for printing ...

Definition at line 23 of file DDVector.cc.

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

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