CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DDSpecifics.cc File Reference
#include "DetectorDescription/Core/interface/DDSpecifics.h"
#include "Specific.h"
#include "DetectorDescription/Base/interface/DDdebug.h"
#include <utility>
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 88 of file DDSpecifics.cc.

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

89 {
91  if (defined.first) {
92  os << *(defined.first) << " ";
93  if (defined.second) {
94  sp.rep().stream(os);
95  }
96  else {
97  os << "* specific not defined * ";
98  }
99  }
100  else {
101  os << "* specific not declared * ";
102  }
103  return os;
104 
105 }
Definition: DDBase.h:14
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:89
def_type isDefined() const
Definition: DDBase.h:115
std::ostream& operator<< ( std::ostream &  os,
const std::vector< std::string > &  v 
)

Definition at line 108 of file DDSpecifics.cc.

References v.

109 {
110  std::vector<std::string>::const_iterator it = v.begin();
111  for (; it!=v.end(); ++it) {
112  os << *it << std::endl;
113  }
114  return os;
115 }
mathSSE::Vec4< T > v