CMS 3D CMS Logo

Classes | Functions
DDExpandedView.h File Reference
#include <stddef.h>
#include <iosfwd>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Base/interface/DDRotationMatrix.h"
#include "DetectorDescription/Base/interface/DDTranslation.h"
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "DetectorDescription/Core/interface/DDExpandedNode.h"
#include "DetectorDescription/Core/interface/DDLogicalPart.h"
#include "DetectorDescription/Core/interface/DDPosData.h"
#include "DetectorDescription/Core/interface/DDTransform.h"
#include "DetectorDescription/Core/interface/DDsvalues.h"

Go to the source code of this file.

Classes

class  DDExpandedView
 Provides an exploded view of the detector (tree-view) More...
 

Functions

std::ostream & operator<< (std::ostream &os, const DDExpandedView::nav_type &n)
 
std::ostream & operator<< (std::ostream &os, const DDExpandedView::NavRange &n)
 
std::string printNavType (int const *n, size_t sz)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDExpandedView::nav_type n 
)
inline

Definition at line 146 of file DDExpandedView.h.

References printNavType().

146  {
147  os << printNavType(&n.front(),n.size());
148  return os;
149 }
std::string printNavType(int const *n, size_t sz)
std::ostream& operator<< ( std::ostream &  os,
const DDExpandedView::NavRange n 
)
inline

Definition at line 150 of file DDExpandedView.h.

References printNavType().

150  {
151  os << printNavType(n.first,n.second);
152  return os;
153 }
std::string printNavType(int const *n, size_t sz)
std::string printNavType ( int const *  n,
size_t  sz 
)

Definition at line 501 of file DDExpandedView.cc.

Referenced by operator<<().

501  {
502  std::ostringstream oss;
503  oss << '(' ;
504  for (int const * it=n; it != n+sz; ++it) {
505  oss << *it << ',';
506  }
507  oss << ')';
508  return oss.str();
509 }