18 class DDVector :
public DDBase<DDName, std::unique_ptr<std::vector<double> > > {
36 size_t size()
const {
return rep().size(); }
51 value_type::const_iterator
vectorEnd()
const {
return rep().end(); }
54 operator double()
const {
return rep()[0]; }
57 operator std::vector<double>()
const {
return rep(); }
60 operator std::vector<int>()
const;
double value() const
return the first stored value; does not check boundaries!
size_t size() const
the size of the array of values
DDName is used to identify DDD entities uniquely.
const DDI::rep_traits< DDName, std::unique_ptr< std::vector< double > > >::reference rep() const
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
std::ostream & operator<<(std::ostream &o, const DDVector &cons)
output operator for printing ...
value_type::const_iterator vectorEnd() const
read-only iterator poining one place after the stored values
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> ...
double operator[](size_t pos) const
returns the value on position pos; does not check boundaries!
std::vector< double > value_type
value type of the managed object
const DDName & name() const
DDVector()
an uninitialized constant; one can assign an initialized constant to make it valid ...
value_type::const_iterator vectorBegin() const
read-only iterator pointing to the begin of the stored values
const value_type & values() const
the stored values