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 91 of file DDSpecifics.cc.

References findQualityFiles::v.

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

Definition at line 73 of file DDSpecifics.cc.

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

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