a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> More...
#include <DDVector.h>
Public Types | |
using | size_t = std::vector< double >::size_type |
size type for the size of the stored values More... | |
using | value_type = std::vector< double > |
value type of the managed object More... | |
Public Types inherited from DDBase< DDName, std::unique_ptr< std::vector< double > > > | |
using | def_type = std::pair< const DDName *, bool > |
using | StoreT = DDI::Singleton< DDI::Store< DDName, std::unique_ptr< std::vector< double > > > > |
Public Member Functions | |
DDVector () | |
an uninitialized constant; one can assign an initialized constant to make it valid More... | |
DDVector (const DDName &name) | |
a refenrence to a constant More... | |
DDVector (const DDName &name, std::unique_ptr< std::vector< double > > value) | |
creation of a new named constant; if it already existed with the given name, it's overwritten with new values More... | |
operator double () const | |
convert to a double More... | |
operator std::vector< double > () const | |
convert to a std::vector<double> More... | |
operator std::vector< int > () const | |
convert to a std::vector<int> (expensive!) More... | |
double | operator[] (size_t pos) const |
returns the value on position pos; does not check boundaries! More... | |
size_t | size () const |
the size of the array of values More... | |
double | value () const |
return the first stored value; does not check boundaries! More... | |
const value_type & | values () const |
the stored values More... | |
value_type::const_iterator | vectorBegin () const |
read-only iterator pointing to the begin of the stored values More... | |
value_type::const_iterator | vectorEnd () const |
read-only iterator poining one place after the stored values More... | |
Public Member Functions inherited from DDBase< DDName, std::unique_ptr< std::vector< double > > > | |
void | create (const DDName &name, std::unique_ptr< std::vector< double > > vals) |
void | create (const DDName &name) |
DDBase () | |
const DDName & | ddname () const |
def_type | isDefined () const |
bool | isValid () const |
true, if the wrapped pointer is valid More... | |
const DDName & | name () const |
operator bool () const | |
bool | operator< (const DDBase &b) const |
bool | operator== (const DDBase &b) const |
bool | operator> (const DDBase &b) const |
const DDI::rep_traits< DDName, std::unique_ptr< std::vector< double > > >::reference | rep () const |
DDI::rep_traits< DDName, std::unique_ptr< std::vector< double > > >::reference | rep () |
std::string | toString () const |
const DDI::rep_traits< DDName, std::unique_ptr< std::vector< double > > >::reference | val () const |
const DDI::rep_traits< DDName, std::unique_ptr< std::vector< double > > >::reference | val () |
virtual | ~DDBase () |
Additional Inherited Members | |
Static Public Member Functions inherited from DDBase< DDName, std::unique_ptr< std::vector< double > > > | |
static auto | begin () |
static auto | end () |
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector>
Definition at line 18 of file DDVector.h.
using DDVector::size_t = std::vector<double>::size_type |
size type for the size of the stored values
Definition at line 23 of file DDVector.h.
using DDVector::value_type = std::vector<double> |
value type of the managed object
Definition at line 26 of file DDVector.h.
DDVector::DDVector | ( | ) |
an uninitialized constant; one can assign an initialized constant to make it valid
Definition at line 5 of file DDVector.cc.
DDVector::DDVector | ( | const DDName & | name | ) |
a refenrence to a constant
Definition at line 9 of file DDVector.cc.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::create().
DDVector::DDVector | ( | const DDName & | name, |
std::unique_ptr< std::vector< double > > | value | ||
) |
creation of a new named constant; if it already existed with the given name, it's overwritten with new values
Definition at line 15 of file DDVector.cc.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::create(), eostools::move(), and create_public_pileup_plots::vals.
|
inline |
convert to a double
Definition at line 56 of file DDVector.h.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::rep().
|
inline |
convert to a std::vector<double>
Definition at line 59 of file DDVector.h.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::rep().
DDVector::operator std::vector< int > | ( | ) | const |
convert to a std::vector<int> (expensive!)
Definition at line 38 of file DDVector.cc.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::begin(), DDBase< DDName, std::unique_ptr< std::vector< double > > >::end(), createfilelist::int, DDBase< DDName, std::unique_ptr< std::vector< double > > >::rep(), mps_fire::result, and size().
|
inline |
returns the value on position pos; does not check boundaries!
Definition at line 44 of file DDVector.h.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::rep().
|
inline |
the size of the array of values
Definition at line 38 of file DDVector.h.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::rep().
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), DDCutTubsFromPoints::initialize(), operator std::vector< int >(), and operator<<().
|
inline |
return the first stored value; does not check boundaries!
Definition at line 47 of file DDVector.h.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::rep().
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Mixins.UsingBlock::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), and Vispa.Views.PropertyView.FileProperty::labelDoubleClicked().
|
inline |
the stored values
Definition at line 41 of file DDVector.h.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::rep().
Referenced by operator<<().
|
inline |
read-only iterator pointing to the begin of the stored values
Definition at line 50 of file DDVector.h.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::rep().
|
inline |
read-only iterator poining one place after the stored values
Definition at line 53 of file DDVector.h.
References DDBase< DDName, std::unique_ptr< std::vector< double > > >::rep().