CMS 3D CMS Logo

Functions
ClhepEvaluator.cc File Reference
#include <ext/alloc_traits.h>
#include <iostream>
#include <string>
#include <vector>
#include "CLHEP/Evaluator/Evaluator.h"
#include "DetectorDescription/ExprAlgo/interface/ClhepEvaluator.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

void dd_exchange_value (std::vector< std::string > &vars, std::vector< std::string > &vals, const std::string &var, const std::string &val)
 

Function Documentation

void dd_exchange_value ( std::vector< std::string > &  vars,
std::vector< std::string > &  vals,
const std::string &  var,
const std::string &  val 
)

Definition at line 32 of file ClhepEvaluator.cc.

References KineDebug3::count(), and heppy_batch::val.

Referenced by ClhepEvaluator::set().

34 {
35  std::vector<std::string>::iterator it(vars.begin()), ed(vars.end());
37  for (; it != ed; ++it) {
38  if ( *it == var) {
39  // a potential memory leak below! But CLHEP::Evaluator should take care about it!!
40  vals[count] = val;
41  break;
42  }
43  ++count;
44  }
45 }
uint16_t size_type