CMS 3D CMS Logo

Functions | Variables
DDValue.cc File Reference
#include "DetectorDescription/Core/interface/DDValue.h"
#include "DetectorDescription/Core/interface/DDPosData.h"
#include "DetectorDescription/Core/interface/DDFilteredView.h"
#include "DetectorDescription/Core/interface/DDComparator.h"
#include <cassert>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &o, const DDValue &v)
 
std::ostream & operator<< (std::ostream &o, const DDValuePair &v)
 

Variables

static std::atomic< unsigned int > lastIndex {0}
 

Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const DDValue v 
)

Definition at line 154 of file DDValue.cc.

References mps_fire::i, DDValue::isEvaluated(), DDValue::name(), connectstrParser::o, alignCSCRings::s, DDValue::size(), and DDValue::strings().

155 {
156  o << v.name() << " = ";
157  unsigned int i = 0;
158  if( v.isEvaluated())
159  {
160  for(; i < v.size(); ++i )
161  {
162  o << '(' << v[i].first << ',' << v[i].second << ") ";
163  }
164  }
165  else
166  {
167  const std::vector<std::string> & s = v.strings();
168  for(; i < v.size(); ++i )
169  {
170  o << s[i] << ' ';
171  }
172  }
173  return o;
174 }
const std::string & name(void) const
the name of the DDValue
Definition: DDValue.h:54
bool isEvaluated(void) const
true, if values are numerical evaluated; else false.
Definition: DDValue.cc:204
const std::vector< std::string > & strings() const
a reference to the std::string-valued values stored in the given instance of DDValue ...
Definition: DDValue.h:61
unsigned int size() const
the size of the stored value-pairs (std::string,double)
Definition: DDValue.h:68
std::ostream& operator<< ( std::ostream &  o,
const DDValuePair v 
)

Definition at line 177 of file DDValue.cc.

Referenced by DDValuePair::operator double &().

178 {
179  return o << v.second;
180 }

Variable Documentation

std::atomic<unsigned int> lastIndex {0}
static

Definition at line 12 of file DDValue.cc.

Referenced by DDValue::DDValue(), and DDValue::init().