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 operator[](size_t pos) const
returns the value on position pos; does not check boundaries!
const DDName & name() const
size_t size() const
the size of the array of values
const DDI::rep_traits< DDName, std::unique_ptr< std::vector< double > > >::reference rep() const
DDName is used to identify DDD entities uniquely.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
double value() const
return the first stored value; does not check boundaries!
value_type::const_iterator vectorBegin() const
read-only iterator pointing to the begin of the stored values
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> ...
std::vector< double > value_type
value type of the managed object
DDVector()
an uninitialized constant; one can assign an initialized constant to make it valid ...
const value_type & values() const
the stored values
value_type::const_iterator vectorEnd() const
read-only iterator poining one place after the stored values