CMS 3D CMS Logo

Classes | Namespaces | Typedefs | Functions
DDSpecifics.h File Reference
#include <iosfwd>
#include <map>
#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
 

Typedefs

typedef std::vector< std::string > selectors_type
 

Functions

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

Typedef Documentation

typedef std::vector<std::string> selectors_type

Definition at line 23 of file DDSpecifics.h.

Function Documentation

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

Definition at line 90 of file DDSpecifics.cc.

References findQualityFiles::v.

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

Definition at line 72 of file DDSpecifics.cc.

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

73 {
74  DDBase<DDName,DDI::Specific*>::def_type defined(sp.isDefined());
75  if (defined.first) {
76  os << *(defined.first) << " ";
77  if (defined.second) {
78  sp.rep().stream(os);
79  }
80  else {
81  os << "* specific not defined * ";
82  }
83  }
84  else {
85  os << "* specific not declared * ";
86  }
87  return os;
88 }
Definition: DDBase.h:10
Definition: sp.h:21