a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> More...
#include <DDConstant.h>
Public Member Functions | |
DDConstant () | |
an uninitialized constant; one can assign an initialized constant to make it valid More... | |
DDConstant (const DDName &name) | |
a refenrence to a constant More... | |
DDConstant (const DDName &name, 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... | |
double | value () const |
return the first stored value; does not check boundaries! More... | |
Public Member Functions inherited from DDBase< DDName, double * > | |
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, double * >::reference | rep () const |
DDI::rep_traits< DDName, double * >::reference | rep () |
std::string | toString () const |
const DDI::rep_traits< DDName, double * >::reference | val () const |
const DDI::rep_traits< DDName, double * >::reference | val () |
virtual | ~DDBase () |
Static Public Member Functions | |
static void | createConstantsFromEvaluator () |
creates all DDConstants from the variables of the ClhepEvaluator More... | |
Static Public Member Functions inherited from DDBase< DDName, double * > | |
static DDI::Store< DDName, double * >::iterator | begin () |
static void | clear () |
static DDI::Store< DDName, double * >::iterator | end () |
static size_t | size () |
Additional Inherited Members | |
Public Types inherited from DDBase< DDName, double * > | |
typedef std::pair< const DDName *, bool > | def_type |
typedef double * | pimpl_type |
typedef DDI::rep_type< DDName, pimpl_type > * | prep_type |
typedef DDI::Singleton < DDI::Store< DDName, double * > > | StoreT |
Protected Attributes inherited from DDBase< DDName, double * > | |
prep_type | prep_ |
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector>
Definition at line 15 of file DDConstant.h.
DDConstant::DDConstant | ( | ) |
an uninitialized constant; one can assign an initialized constant to make it valid
Definition at line 6 of file DDConstant.cc.
DDConstant::DDConstant | ( | const DDName & | name | ) |
a refenrence to a constant
Definition at line 9 of file DDConstant.cc.
References DDI::Singleton< I >::instance(), and DDBase< DDName, double * >::prep_.
DDConstant::DDConstant | ( | const DDName & | name, |
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 14 of file DDConstant.cc.
References DDI::Singleton< I >::instance(), and DDBase< DDName, double * >::prep_.
|
static |
creates all DDConstants from the variables of the ClhepEvaluator
Definition at line 34 of file DDConstant.cc.
References ev, ClhepEvaluator::eval(), edm::hlt::Exception, i, DDI::Singleton< I >::instance(), DDBase< DDName, double * >::name(), alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, create_public_pileup_plots::vals, ClhepEvaluator::values(), and ClhepEvaluator::variables().
Referenced by DDLSAX2FileHandler::createDDConstants(), and DDStreamer::vars_read().
|
inline |
convert to a double
Definition at line 34 of file DDConstant.h.
References DDBase< DDName, double * >::rep().
|
inline |
return the first stored value; does not check boundaries!
Definition at line 31 of file DDConstant.h.
References DDBase< DDName, 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__(), 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(), Mixins.UsingBlock::insertInto(), Types.double::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(), Vispa.Views.PropertyView.FileProperty::labelDoubleClicked(), and operator<<().