18 os <<
"DDConstant name=" << cons.
name();
21 os <<
" val=" << cons.
value();
24 os <<
" constant is not yet defined, only declared.";
33 const auto& vars = eval.variables();
34 const auto&
vals = eval.values();
35 if( vars.size() !=
vals.size()) {
37 <<
"DDConstants::createConstansFromEvaluator(): different size of variable names & values!";
39 for(
const auto& it : vars ) {
40 auto found = it.find(
"___" );
42 double* dv =
new double;
43 *dv = eval.eval( it.c_str());
def_type isDefined() const
DDName is used to identify DDD entities uniquely.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static value_type & instance()
double value() const
return the first stored value; does not check boundaries!
DDConstant()
an uninitialized constant; one can assign an initialized constant to make it valid ...
static void createConstantsFromEvaluator()
creates all DDConstants from the variables of the ClhepEvaluator
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> ...