CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
ClhepEvaluator.cc File Reference
#include <iostream>
#include "DetectorDescription/ExprAlgo/interface/ClhepEvaluator.h"
#include "DetectorDescription/Base/interface/DDdebug.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 26 of file ClhepEvaluator.cc.

References prof2calltree::count.

Referenced by ClhepEvaluator::set().

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