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