CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Typedefs | Functions
DDSpecifics.h File Reference
#include <map>
#include <string>
#include <vector>
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDsvalues.h"
#include "DetectorDescription/Core/interface/DDExpandedView.h"

Go to the source code of this file.

Classes

class  DDSpecifics
 Interface to attach user specific data to nodes in the expanded-view. More...
 

Namespaces

 DDI
 A DDDivision contains the parameterization that Geant4 needs in order to do its divisions.
 

Typedefs

typedef std::vector< std::string > selectors_type
 

Functions

std::ostream & operator<< (std::ostream &, const std::vector< std::string > &)
 
std::ostream & operator<< (std::ostream &, const DDSpecifics &)
 

Typedef Documentation

typedef std::vector<std::string> selectors_type

Definition at line 21 of file DDSpecifics.h.

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const std::vector< std::string > &   
)

Definition at line 108 of file DDSpecifics.cc.

References python.connectstrParser::o, and v.

109 {
110  std::vector<std::string>::const_iterator it = v.begin();
111  for (; it!=v.end(); ++it) {
112  os << *it << std::endl;
113  }
114  return os;
115 }
mathSSE::Vec4< T > v
std::ostream& operator<< ( std::ostream &  ,
const DDSpecifics  
)

Definition at line 88 of file DDSpecifics.cc.

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

89 {
90  DDBase<DDName,DDI::Specific*>::def_type defined(sp.isDefined());
91  if (defined.first) {
92  os << *(defined.first) << " ";
93  if (defined.second) {
94  sp.rep().stream(os);
95  }
96  else {
97  os << "* specific not defined * ";
98  }
99  }
100  else {
101  os << "* specific not declared * ";
102  }
103  return os;
104 
105 }
Definition: DDBase.h:14
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:89