LCIO
02.17
|
Implementation of Simple interface to store generic named parameters of type int, float and string. More...
#include <LCParametersImpl.h>
Public Member Functions | |
LCParametersImpl () | |
virtual | ~LCParametersImpl () |
Destructor. More... | |
virtual int | getIntVal (const std::string &key) const |
Returns the first integer value for the given key. More... | |
virtual float | getFloatVal (const std::string &key) const |
Returns the first float value for the given key. More... | |
virtual double | getDoubleVal (const std::string &key) const |
Returns the first double value for the given key. More... | |
virtual const std::string & | getStringVal (const std::string &key) const |
Returns the first string value for the given key. More... | |
virtual EVENT::IntVec & | getIntVals (const std::string &key, EVENT::IntVec &values) const |
Adds all integer values for the given key to values. More... | |
virtual EVENT::FloatVec & | getFloatVals (const std::string &key, EVENT::FloatVec &values) const |
Adds all float values for the given key to values. More... | |
virtual EVENT::DoubleVec & | getDoubleVals (const std::string &key, EVENT::DoubleVec &values) const |
Adds all double values for the given key to values. More... | |
virtual EVENT::StringVec & | getStringVals (const std::string &key, EVENT::StringVec &values) const |
Adds all string values for the given key to values. More... | |
virtual const EVENT::StringVec & | getIntKeys (EVENT::StringVec &keys) const |
Returns a list of all keys of integer parameters. More... | |
virtual const EVENT::StringVec & | getFloatKeys (EVENT::StringVec &keys) const |
Returns a list of all keys of float parameters. More... | |
virtual const EVENT::StringVec & | getDoubleKeys (EVENT::StringVec &keys) const |
Returns a list of all keys of double parameters. More... | |
virtual const EVENT::StringVec & | getStringKeys (EVENT::StringVec &keys) const |
Returns a list of all keys of string parameters. More... | |
virtual int | getNInt (const std::string &key) const |
The number of integer values stored for this key. More... | |
virtual int | getNFloat (const std::string &key) const |
The number of float values stored for this key. More... | |
virtual int | getNDouble (const std::string &key) const |
The number of double values stored for this key. More... | |
virtual int | getNString (const std::string &key) const |
The number of string values stored for this key. More... | |
virtual void | setValue (const std::string &key, int value) |
Set integer value for the given key. More... | |
virtual void | setValue (const std::string &key, float value) |
Set float value for the given key. More... | |
virtual void | setValue (const std::string &key, double value) |
Set double value for the given key. More... | |
virtual void | setValue (const std::string &key, const std::string &value) |
Set string value for the given key. More... | |
virtual void | setValues (const std::string &key, const EVENT::IntVec &values) |
Set integer values for the given key. More... | |
virtual void | setValues (const std::string &key, const EVENT::FloatVec &values) |
Set float values for the given key. More... | |
virtual void | setValues (const std::string &key, const EVENT::DoubleVec &values) |
Set double values for the given key. More... | |
virtual void | setValues (const std::string &key, const EVENT::StringVec &values) |
Set string values for the given key. More... | |
![]() | |
virtual | ~LCParameters () |
Destructor. More... | |
![]() | |
AccessChecked () | |
virtual | ~AccessChecked () |
virtual int | simpleUID () const |
Protected Attributes | |
IntMap | _intMap {} |
FloatMap | _floatMap {} |
DoubleMap | _doubleMap {} |
StringMap | _stringMap {} |
![]() | |
bool | _readOnly {false} |
int | _id {-1} |
Friends | |
class | LCRunHeaderImpl |
class | LCEventImpl |
class | LCCollectionVec |
Additional Inherited Members | |
![]() | |
virtual void | setReadOnly (bool readOnly) |
void | checkAccess () |
void | checkAccess (const char *what) |
![]() | |
static std::atomic_int | _lCObjectId |
Implementation of Simple interface to store generic named parameters of type int, float and string.
It can be used to store (user) meta data that is run, event or collection dependent.
Definition at line 36 of file LCParametersImpl.h.
IMPL::LCParametersImpl::LCParametersImpl | ( | ) |
Definition at line 10 of file LCParametersImpl.cc.
|
inlinevirtual |
Destructor.
Definition at line 47 of file LCParametersImpl.h.
|
virtual |
Returns a list of all keys of double parameters.
Implements EVENT::LCParameters.
Definition at line 123 of file LCParametersImpl.cc.
References std::vector< T >::push_back().
|
virtual |
Returns the first double value for the given key.
Implements EVENT::LCParameters.
Definition at line 36 of file LCParametersImpl.cc.
|
virtual |
Adds all double values for the given key to values.
Returns a reference to values for convenience.
Implements EVENT::LCParameters.
Definition at line 81 of file LCParametersImpl.cc.
References std::vector< T >::end(), and std::vector< T >::insert().
|
virtual |
Returns a list of all keys of float parameters.
Implements EVENT::LCParameters.
Definition at line 113 of file LCParametersImpl.cc.
References std::vector< T >::push_back().
|
virtual |
Returns the first float value for the given key.
Implements EVENT::LCParameters.
Definition at line 25 of file LCParametersImpl.cc.
Referenced by IMPL::LCEventImpl::getWeight().
|
virtual |
Adds all float values for the given key to values.
Returns a reference to values for convenience.
Implements EVENT::LCParameters.
Definition at line 71 of file LCParametersImpl.cc.
References std::vector< T >::end(), and std::vector< T >::insert().
|
virtual |
Returns a list of all keys of integer parameters.
Implements EVENT::LCParameters.
Definition at line 102 of file LCParametersImpl.cc.
References std::vector< T >::push_back().
|
virtual |
Returns the first integer value for the given key.
Implements EVENT::LCParameters.
Definition at line 14 of file LCParametersImpl.cc.
|
virtual |
Adds all integer values for the given key to values.
Returns a reference to values for convenience.
Implements EVENT::LCParameters.
Definition at line 60 of file LCParametersImpl.cc.
References std::vector< T >::end(), and std::vector< T >::insert().
|
virtual |
The number of double values stored for this key.
Implements EVENT::LCParameters.
Definition at line 163 of file LCParametersImpl.cc.
|
virtual |
The number of float values stored for this key.
Implements EVENT::LCParameters.
Definition at line 153 of file LCParametersImpl.cc.
References std::string::find().
|
virtual |
The number of integer values stored for this key.
Implements EVENT::LCParameters.
Definition at line 143 of file LCParametersImpl.cc.
References std::vector< T >::size().
|
virtual |
The number of string values stored for this key.
Implements EVENT::LCParameters.
Definition at line 173 of file LCParametersImpl.cc.
|
virtual |
Returns a list of all keys of string parameters.
Implements EVENT::LCParameters.
Definition at line 133 of file LCParametersImpl.cc.
References std::vector< T >::push_back().
|
virtual |
Returns the first string value for the given key.
Implements EVENT::LCParameters.
Definition at line 47 of file LCParametersImpl.cc.
|
virtual |
Adds all string values for the given key to values.
Returns a reference to values for convenience.
Implements EVENT::LCParameters.
Definition at line 91 of file LCParametersImpl.cc.
References std::string::begin(), std::vector< T >::end(), and std::vector< T >::insert().
|
virtual |
Set integer value for the given key.
Implements EVENT::LCParameters.
Definition at line 183 of file LCParametersImpl.cc.
Referenced by IMPL::LCEventImpl::setWeight().
|
virtual |
Set float value for the given key.
Implements EVENT::LCParameters.
Definition at line 190 of file LCParametersImpl.cc.
|
virtual |
Set double value for the given key.
Implements EVENT::LCParameters.
Definition at line 197 of file LCParametersImpl.cc.
|
virtual |
Set string value for the given key.
Implements EVENT::LCParameters.
Definition at line 204 of file LCParametersImpl.cc.
|
virtual |
Set integer values for the given key.
Implements EVENT::LCParameters.
Definition at line 214 of file LCParametersImpl.cc.
References std::vector< T >::begin(), and std::vector< T >::end().
|
virtual |
Set float values for the given key.
Implements EVENT::LCParameters.
Definition at line 224 of file LCParametersImpl.cc.
References std::vector< T >::begin(), and std::vector< T >::end().
|
virtual |
Set double values for the given key.
Implements EVENT::LCParameters.
Definition at line 234 of file LCParametersImpl.cc.
References std::vector< T >::begin(), and std::vector< T >::end().
|
virtual |
Set string values for the given key.
Implements EVENT::LCParameters.
Definition at line 244 of file LCParametersImpl.cc.
References std::vector< T >::begin(), and std::vector< T >::end().
|
friend |
Definition at line 40 of file LCParametersImpl.h.
|
friend |
Definition at line 39 of file LCParametersImpl.h.
|
friend |
Definition at line 38 of file LCParametersImpl.h.
|
mutableprotected |
Definition at line 154 of file LCParametersImpl.h.
|
mutableprotected |
Definition at line 153 of file LCParametersImpl.h.
|
mutableprotected |
Definition at line 152 of file LCParametersImpl.h.
|
mutableprotected |
Definition at line 155 of file LCParametersImpl.h.