CMS 3D CMS Logo

DDVector.h File Reference

#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDName.h"
#include <vector>
#include <iostream>

Go to the source code of this file.

Classes

class  DDVector
 a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> More...

Functions

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


Function Documentation

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

output operator for printing ...

Definition at line 23 of file DDVector.cc.

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

00024 {
00025   os << "DDVector name=" << cons.name(); 
00026   
00027   if(cons.isDefined().second) {
00028     os << " size=" << cons.size() << " vals=( ";
00029     DDVector::value_type::const_iterator it(cons.values().begin()), ed(cons.values().end());
00030     for(; it<ed; ++it) {
00031       os << *it << ' ';
00032     }
00033     os << ')';
00034   }
00035   else {
00036     os << " constant is not yet defined, only declared.";
00037   }  
00038   return os;
00039 }


Generated on Tue Jun 9 17:52:36 2009 for CMSSW by  doxygen 1.5.4