#include <ParameterDescription.h>
Public Member Functions | |
virtual ParameterDescriptionNode * | clone () const |
T | getDefaultValue () const |
ParameterDescription (std::string const &iLabel, bool isTracked) | |
ParameterDescription (char const *iLabel, T const &value, bool isTracked) | |
ParameterDescription (char const *iLabel, bool isTracked) | |
ParameterDescription (std::string const &iLabel, T const &value, bool isTracked) | |
virtual | ~ParameterDescription () |
Private Member Functions | |
virtual bool | exists_ (ParameterSet const &pset) const |
virtual bool | exists_ (ParameterSet const &pset, bool isTracked) const |
virtual bool | hasNestedContent_ () |
virtual void | insertDefault_ (ParameterSet &pset) const |
virtual void | writeCfi_ (std::ostream &os, int indentation) const |
virtual void | writeDoc_ (std::ostream &os, int indentation) const |
Private Attributes | |
T | value_ |
Definition at line 98 of file ParameterDescription.h.
edm::ParameterDescription< T >::ParameterDescription | ( | std::string const & | iLabel, |
T const & | value, | ||
bool | isTracked | ||
) | [inline] |
Definition at line 101 of file ParameterDescription.h.
Referenced by edm::ParameterDescription< std::vector< ParameterSet > >::clone(), edm::ParameterDescription< std::vector< std::string > >::clone(), and edm::ParameterDescription< ParameterSetDescription >::clone().
: // WARNING: the toEnum function is intentionally undefined if the template // parameter is ParameterSet or vector<ParameterSet>. Both of these cases // are handled by full template specializations below. In the first case. // ParameterSetDescription should be used instead of ParameterSet. // In the second case the function arguments are completely different. // Note that this template parameter is most often passed through from // an add*<T> function of class ParameterSetDescription. For vector<ParameterSet> // use the addVPSet* versions of those functions. ParameterDescriptionBase(iLabel, ParameterTypeToEnum::toEnum<T>(), isTracked, true), value_(value) { }
edm::ParameterDescription< T >::ParameterDescription | ( | char const * | iLabel, |
T const & | value, | ||
bool | isTracked | ||
) | [inline] |
Definition at line 116 of file ParameterDescription.h.
: // WARNING: the toEnum function is intentionally undefined if the template // parameter is ParameterSet or vector<ParameterSet>. Both of these cases // are handled by full template specializations below. In the first case. // ParameterSetDescription should be used instead of ParameterSet. // In the second case the function arguments are completely different. // Note that this template parameter is most often passed through from // an add*<T> function of class ParameterSetDescription. For vector<ParameterSet> // use the addVPSet* versions of those functions. ParameterDescriptionBase(iLabel, ParameterTypeToEnum::toEnum<T>(), isTracked, true), value_(value) { }
edm::ParameterDescription< T >::ParameterDescription | ( | std::string const & | iLabel, |
bool | isTracked | ||
) | [inline] |
Definition at line 131 of file ParameterDescription.h.
: // WARNING: the toEnum function is intentionally undefined if the template // parameter is ParameterSet or vector<ParameterSet>. Both of these cases // are handled by full template specializations below. In the first case. // ParameterSetDescription should be used instead of ParameterSet. // In the second case the function arguments are completely different. // Note that this template parameter is most often passed through from // an add*<T> function of class ParameterSetDescription. For vector<ParameterSet> // use the addVPSet* versions of those functions. ParameterDescriptionBase(iLabel, ParameterTypeToEnum::toEnum<T>(), isTracked, false), value_() { }
edm::ParameterDescription< T >::ParameterDescription | ( | char const * | iLabel, |
bool | isTracked | ||
) | [inline] |
Definition at line 145 of file ParameterDescription.h.
: // WARNING: the toEnum function is intentionally undefined if the template // parameter is ParameterSet or vector<ParameterSet>. Both of these cases // are handled by full template specializations below. In the first case. // ParameterSetDescription should be used instead of ParameterSet. // In the second case the function arguments are completely different. // Note that this template parameter is most often passed through from // an add*<T> function of class ParameterSetDescription. For vector<ParameterSet> // use the addVPSet* versions of those functions. ParameterDescriptionBase(iLabel, ParameterTypeToEnum::toEnum<T>(), isTracked, false), value_() { }
virtual edm::ParameterDescription< T >::~ParameterDescription | ( | ) | [inline, virtual] |
Definition at line 159 of file ParameterDescription.h.
{ }
virtual ParameterDescriptionNode* edm::ParameterDescription< T >::clone | ( | void | ) | const [inline, virtual] |
Implements edm::ParameterDescriptionNode.
Definition at line 161 of file ParameterDescription.h.
{ return new ParameterDescription(*this); }
virtual bool edm::ParameterDescription< T >::exists_ | ( | ParameterSet const & | pset | ) | const [inline, private, virtual] |
Implements edm::ParameterDescriptionNode.
Definition at line 169 of file ParameterDescription.h.
virtual bool edm::ParameterDescription< T >::exists_ | ( | ParameterSet const & | pset, |
bool | isTracked | ||
) | const [inline, private, virtual] |
Implements edm::ParameterDescriptionBase.
Definition at line 186 of file ParameterDescription.h.
T edm::ParameterDescription< T >::getDefaultValue | ( | ) | const [inline] |
Definition at line 165 of file ParameterDescription.h.
{ return value_; }
virtual bool edm::ParameterDescription< T >::hasNestedContent_ | ( | ) | [inline, private, virtual] |
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 173 of file ParameterDescription.h.
{ if (!hasDefault()) return false; return writeParameterValue::hasNestedContent(value_); }
virtual void edm::ParameterDescription< T >::insertDefault_ | ( | ParameterSet & | pset | ) | const [inline, private, virtual] |
Implements edm::ParameterDescriptionBase.
Definition at line 190 of file ParameterDescription.h.
virtual void edm::ParameterDescription< T >::writeCfi_ | ( | std::ostream & | os, |
int | indentation | ||
) | const [inline, private, virtual] |
Implements edm::ParameterDescriptionBase.
Definition at line 178 of file ParameterDescription.h.
{ writeParameterValue::writeValue(os, indentation, value_, writeParameterValue::CFI); }
virtual void edm::ParameterDescription< T >::writeDoc_ | ( | std::ostream & | os, |
int | indentation | ||
) | const [inline, private, virtual] |
Implements edm::ParameterDescriptionBase.
Definition at line 182 of file ParameterDescription.h.
{ writeParameterValue::writeValue(os, indentation, value_, writeParameterValue::DOC); }
T edm::ParameterDescription< T >::value_ [private] |
Definition at line 199 of file ParameterDescription.h.
Referenced by edm::ParameterDescription< std::vector< std::string > >::getDefaultValue(), edm::ParameterDescription< std::vector< std::string > >::hasNestedContent_(), edm::ParameterDescription< std::vector< std::string > >::insertDefault_(), edm::ParameterDescription< std::vector< std::string > >::writeCfi_(), and edm::ParameterDescription< std::vector< std::string > >::writeDoc_().