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 > &   
)

◆ operator<<() [2/2]

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

Definition at line 48 of file DDSpecifics.cc.

References DDBase< N, C >::isDefined(), l1tGTMenu_BTagSeeds_cff::os, 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