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

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

Definition at line 87 of file DDSpecifics.cc.

References findQualityFiles::v.

88 {
89  for( const auto& it : v ) {
90  os << it << std::endl;
91  }
92  return os;
93 }
std::ostream& operator<< ( std::ostream &  ,
const DDSpecifics  
)

Definition at line 69 of file DDSpecifics.cc.

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

70 {
71  DDBase<DDName,std::unique_ptr<DDI::Specific>>::def_type defined(sp.isDefined());
72  if (defined.first) {
73  os << *(defined.first) << " ";
74  if (defined.second) {
75  sp.rep().stream(os);
76  }
77  else {
78  os << "* specific not defined * ";
79  }
80  }
81  else {
82  os << "* specific not declared * ";
83  }
84  return os;
85 }
Definition: DDBase.h:10
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:80