CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Typedefs | Functions
DDDivision.h File Reference
#include <iosfwd>
#include <map>
#include <string>
#include <vector>
#include "DetectorDescription/Base/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
 

Typedefs

typedef DDI::Singleton
< std::map< std::string,
std::vector< DDName > > > 
DIVNAMES
 

Functions

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

Typedef Documentation

typedef DDI::Singleton<std::map<std::string,std::vector<DDName> > > DIVNAMES

Definition at line 133 of file DDDivision.h.

Function Documentation

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

Definition at line 12 of file DDDivision.cc.

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

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