CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 10 of file DDDivision.cc.

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

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 }
std::pair< const N *, bool > def_type
Definition: DDBase.h:51