#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 ... |
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(), 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; }