CMS 3D CMS Logo

Functions
DDDivision.cc File Reference
#include "DetectorDescription/Core/interface/DDDivision.h"
#include <ostream>
#include "DetectorDescription/Core/interface/Store.h"
#include "DetectorDescription/Core/src/Division.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDDivision &div)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDDivision div 
)

Definition at line 12 of file DDDivision.cc.

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

13 {
15  if (defined.first) {
16  os << *(defined.first) << " ";
17  if (defined.second) {
18  div.rep().stream(os);
19  }
20  else {
21  os << "* division not defined * ";
22  }
23  }
24  else {
25  os << "* division not declared * ";
26  }
27  return os;
28 }
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:84
def_type isDefined() const
Definition: DDBase.h:110
std::pair< const N *, bool > def_type
Definition: DDBase.h:73