CMS 3D CMS Logo

Functions
DDDivision.cc File Reference
#include "DetectorDescription/Core/interface/DDDivision.h"
#include <ostream>
#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

◆ operator<<()

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

Definition at line 10 of file DDDivision.cc.

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

10  {
12  if (defined.first) {
13  os << *(defined.first) << " ";
14  if (defined.second) {
15  div.rep().stream(os);
16  } else {
17  os << "* division not defined * ";
18  }
19  } else {
20  os << "* division not declared * ";
21  }
22  return os;
23 }
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:65
std::pair< const N *, bool > def_type
Definition: DDBase.h:51
def_type isDefined() const
Definition: DDBase.h:90