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

◆ operator<<()

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

Definition at line 10 of file DDDivision.cc.

10  {
11  DDBase<DDName, Division*>::def_type defined(div.isDefined());
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 }

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

DDBase::def_type
std::pair< const N *, bool > def_type
Definition: DDBase.h:51