CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DDDivision.cc File Reference
#include "DetectorDescription/Core/interface/DDDivision.h"
#include "Division.h"
#include "DetectorDescription/Base/interface/DDdebug.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 9 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  }
17  else {
18  os << "* division not defined * ";
19  }
20  }
21  else {
22  os << "* division not declared * ";
23  }
24  return os;
25 }
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