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 DDSpecifics &)
 
std::ostream & operator<< (std::ostream &, const std::vector< std::string > &)
 

Function Documentation

◆ operator<<() [1/2]

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

Definition at line 48 of file DDSpecifics.cc.

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 }

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

◆ operator<<() [2/2]

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

Definition at line 63 of file DDSpecifics.cc.

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

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

findQualityFiles.v
v
Definition: findQualityFiles.py:179
DDBase::rep
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:65
DDBase
Definition: DDBase.h:10