CMS 3D CMS Logo

DDMap.cc

Go to the documentation of this file.
00001 #include "DetectorDescription/Core/interface/DDMap.h"
00002 //#include "DetectorDescription/Base/interface/DDException.h"
00003 
00004 // Evaluator 
00005 //#include "DetectorDescription/ExprAlgo/interface/ExprEvalSingleton.h"
00006 
00007 
00008 
00009 DDMap::DDMap() : DDBase<DDName,dd_map_type*>() { }
00010 
00011 
00012 DDMap::DDMap(const DDName & name) : DDBase<DDName,dd_map_type*>() 
00013 {
00014   prep_ = StoreT::instance().create(name);
00015 }
00016 
00017 DDMap::DDMap(const DDName & name,dd_map_type* vals)
00018 {
00019   prep_ = StoreT::instance().create(name,vals);
00020 }  
00021 
00022 
00023 std::ostream & operator<<(std::ostream & os, const DDMap & cons)
00024 {
00025   os << "DDMap name=" << cons.name(); 
00026   
00027   if(cons.isDefined().second) {
00028     os << " size=" << cons.size() << " vals=( ";
00029     DDMap::value_type::const_iterator it(cons.values().begin()), ed(cons.values().end());
00030     for(; it != ed; ++it) {
00031       os << it->first << '=' << it->second << ' ';
00032     }
00033     os << ')';
00034   }
00035   else {
00036     os << " DDMap is not yet defined, only declared.";
00037   }  
00038   return os;
00039 }
00040 
00041 

Generated on Tue Jun 9 17:32:13 2009 for CMSSW by  doxygen 1.5.4