#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Base/interface/DDReadMapType.h"
#include <string>
#include <iostream>
Go to the source code of this file.
Classes | |
class | DDMap |
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> More... | |
Typedefs | |
typedef ReadMapType< double > | dd_map_type |
simply a std::map<std::string,double> supporting an addional operator[] const | |
Functions | |
std::ostream & | operator<< (std::ostream &o, const DDMap &cons) |
output operator for printing ... |
typedef ReadMapType<double> dd_map_type |
std::ostream& operator<< | ( | std::ostream & | o, |
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; }