CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
DDExpandedView.h File Reference
#include <iosfwd>
#include <vector>
#include <string>
#include <map>
#include "DetectorDescription/Core/interface/DDTransform.h"
#include "DetectorDescription/Base/interface/DDTranslation.h"
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "DetectorDescription/Core/interface/DDLogicalPart.h"
#include "DetectorDescription/Core/interface/DDPosData.h"
#include "DetectorDescription/Core/interface/DDExpandedNode.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 141 of file DDExpandedView.h.

References printNavType().

141  {
142  os << printNavType(&n.front(),n.size());
143  return os;
144 }
std::string printNavType(int const *n, size_t sz)
std::ostream& operator<< ( std::ostream &  os,
const DDExpandedView::NavRange n 
)
inline

Definition at line 145 of file DDExpandedView.h.

References printNavType().

145  {
146  os << printNavType(n.first,n.second);
147  return os;
148 }
std::string printNavType(int const *n, size_t sz)
std::string printNavType ( int const *  n,
size_t  sz 
)

Definition at line 487 of file DDExpandedView.cc.

Referenced by operator<<().

487  {
488  std::ostringstream oss;
489  oss << '(' ;
490  for (int const * it=n; it != n+sz; ++it) {
491  oss << *it << ',';
492  }
493  oss << ')';
494  return oss.str();
495 }