CMS 3D CMS Logo

Classes | Namespaces | Functions
DDDivision.h File Reference
#include <iosfwd>
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "DetectorDescription/Core/interface/Singleton.h"
#include "DetectorDescription/Core/interface/DDAxes.h"
#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDLogicalPart.h"
#include "DetectorDescription/Core/interface/DDName.h"

Go to the source code of this file.

Classes

class  DDDivision
 

Namespaces

 DDI
 

Functions

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

Function Documentation

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

Definition at line 11 of file DDDivision.cc.

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

12 {
13  DDBase<DDName,Division*>::def_type defined( div.isDefined());
14  if( defined.first ) {
15  os << *( defined.first ) << " ";
16  if( defined.second ) {
17  div.rep().stream( os );
18  }
19  else {
20  os << "* division not defined * ";
21  }
22  }
23  else {
24  os << "* division not declared * ";
25  }
26  return os;
27 }
std::pair< const N *, bool > def_type
Definition: DDBase.h:66