CMS 3D CMS Logo

Classes | Namespaces | Functions
DDSpecifics.h File Reference
#include <iosfwd>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDExpandedView.h"
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDsvalues.h"

Go to the source code of this file.

Classes

class  DDSpecifics
 Interface to attach user specific data to nodes in the expanded-view. More...
 

Namespaces

 DDI
 

Functions

std::ostream & operator<< (std::ostream &, const std::vector< std::string > &)
 
std::ostream & operator<< (std::ostream &, const DDSpecifics &)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  ,
const std::vector< std::string > &   
)

Definition at line 63 of file DDSpecifics.cc.

References EcalTangentSkim_cfg::o, AlCaHLTBitMon_QueryRunRegistry::string, and findQualityFiles::v.

63  {
64  for (const auto& it : v) {
65  os << it << std::endl;
66  }
67  return os;
68 }

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  ,
const DDSpecifics  
)

Definition at line 48 of file DDSpecifics.cc.

References DDBase< N, C >::isDefined(), and DDBase< N, C >::rep().

48  {
49  DDBase<DDName, std::unique_ptr<DDI::Specific>>::def_type defined(sp.isDefined());
50  if (defined.first) {
51  os << *(defined.first) << " ";
52  if (defined.second) {
53  sp.rep().stream(os);
54  } else {
55  os << "* specific not defined * ";
56  }
57  } else {
58  os << "* specific not declared * ";
59  }
60  return os;
61 }
Definition: DDBase.h:10
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:65