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 24 of file DDDivision.cc.

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

25 {
27  if (defined.first) {
28  os << *(defined.first) << " ";
29  if (defined.second) {
30  div.rep().stream(os);
31  }
32  else {
33  os << "* division not defined * ";
34  }
35  }
36  else {
37  os << "* division not declared * ";
38  }
39  return os;
40 }
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:89
def_type isDefined() const
Definition: DDBase.h:115
std::pair< const N *, bool > def_type
Definition: DDBase.h:77