#include <iostream>
#include "DetectorDescription/ExprAlgo/interface/ClhepEvaluator.h"
#include "DetectorDescription/Base/interface/DDException.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) |
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 27 of file ClhepEvaluator.cc.
References prof2calltree::count.
Referenced by ClhepEvaluator::set().
{ std::vector<std::string>::iterator it(vars.begin()), ed(vars.end()); std::vector<std::string>::size_type count(0); for (; it != ed; ++it) { if ( *it == var) { // a potential memory leak below! But CLHEP::Evaluator should take care about it!! vals[count] = val; break; } ++count; } }