22 os <<
"DDVector name=" << cons.
name();
25 os <<
" size=" << cons.
size() <<
" vals=( ";
26 DDVector::value_type::const_iterator it(cons.
values().begin()), ed(cons.
values().end());
33 os <<
" constant is not yet defined, only declared.";
42 std::vector<double>::const_iterator it(
rep().
begin()), ed(
rep().
end());
43 for (; it != ed; ++it) {
44 result[sz] =
int(*it);
def_type isDefined() const
const DDName & name() const
size_t size() const
the size of the array of values
DDName is used to identify DDD entities uniquely.
std::ostream & operator<<(std::ostream &os, const DDVector &cons)
output operator for printing ...
const DDI::rep_traits< DDName, std::unique_ptr< std::vector< double > > >::reference rep() const
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> ...
DDVector()
an uninitialized constant; one can assign an initialized constant to make it valid ...
const value_type & values() const
the stored values
void create(const DDName &name, std::unique_ptr< std::vector< double > > vals)