CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DDTypes.cc File Reference
#include "DetectorDescription/Base/interface/DDTypes.h"
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDNumericArguments &t)
 
std::ostream & operator<< (std::ostream &os, const DDStringArguments &t)
 
std::ostream & operator<< (std::ostream &os, const DDVectorArguments &t)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDNumericArguments t 
)

Definition at line 7 of file DDTypes.cc.

8 {
9  DDNumericArguments::const_iterator it(t.begin()), ed(t.end());
10  for(; it != ed; ++it) {
11  os << it->first << '=' << it->second << std::endl;
12  }
13  return os;
14 }
std::ostream& operator<< ( std::ostream &  os,
const DDStringArguments t 
)

Definition at line 16 of file DDTypes.cc.

17 {
18  DDStringArguments::const_iterator it(t.begin()), ed(t.end());
19  for(; it != ed; ++it) {
20  os << it->first << '=' << it->second << std::endl;
21  }
22  return os;
23 }
std::ostream& operator<< ( std::ostream &  os,
const DDVectorArguments t 
)

Definition at line 25 of file DDTypes.cc.

26 {
27  DDVectorArguments::const_iterator it(t.begin()), ed(t.end());
28  for(; it != ed; ++it) {
29  os << it->first << ": ";
30  std::vector<double>::const_iterator vit(it->second.begin()), ved(it->second.end());
31  for(;vit!=ved;++vit) {
32  os << *vit << ' ';
33  }
34  os << std::endl;
35  }
36  return os;
37 }