#include <OptionalDelegatedParameter.h>
|
| OptionalDelegatedParameter (Name &&name) |
|
| OptionalDelegatedParameter (Name &&name, Comment &&comment) |
|
| OptionalDelegatedParameter (Name &&name, Comment &&comment, std::function< bool()> maybeUse) |
|
bool | hasValue () const |
|
template<typename T > |
std::optional< T > | get_if_present () const |
|
template<typename T > |
bool | get_if_present (T &t) const |
|
| DelegateBase (Name const &name, Comment const &comment, par_style const vt, std::function< bool()> maybeUse) |
|
std::string const & | key () const |
|
std::string const & | name () const |
|
std::string const & | comment () const |
|
bool | has_default () const |
|
bool | is_optional () const |
|
bool | is_conditional () const |
|
par_type | parameter_type () const |
|
bool | should_use () const |
|
| ParameterBase (Name const &name, Comment const &comment, par_style const vt, par_type const type, std::function< bool()> maybeUse=AlwaysUse()) |
|
virtual | ~ParameterBase ()=default |
|
void | set_value (fhicl::ParameterSet const &ps) |
|
bool | preset_value (fhicl::ParameterSet const &ps) |
|
void | set_par_style (par_style const vt) |
|
fhicl::OptionalDelegatedParameter::OptionalDelegatedParameter |
( |
Name && |
name | ) |
|
|
explicit |
fhicl::OptionalDelegatedParameter::OptionalDelegatedParameter |
( |
Name && |
name, |
|
|
Comment && |
comment |
|
) |
| |
|
explicit |
Definition at line 11 of file OptionalDelegatedParameter.cc.
DelegateBase(Name const &name, Comment const &comment, par_style const vt, std::function< bool()> maybeUse)
std::string const & name() const
static void end_of_ctor()
std::function< bool()> AlwaysUse()
RegisterIfTableMember(ParameterBase *pb)
std::string const & comment() const
Definition at line 22 of file OptionalDelegatedParameter.cc.
DelegateBase(Name const &name, Comment const &comment, par_style const vt, std::function< bool()> maybeUse)
std::string const & name() const
static void end_of_ctor()
RegisterIfTableMember(ParameterBase *pb)
std::string const & comment() const
|
inlineoverrideprivatevirtual |
template<typename T >
std::optional<T> fhicl::OptionalDelegatedParameter::get_if_present |
( |
| ) |
const |
|
inline |
Definition at line 36 of file OptionalDelegatedParameter.h.
43 return pset_->get_if_present<
T>(trimmed_key);
std::string strip_first_containing_name(std::string const &key)
std::optional< ParameterSet > pset_
std::string const & key() const
template<typename T >
bool fhicl::OptionalDelegatedParameter::get_if_present |
( |
T & |
t | ) |
const |
|
inline |
bool fhicl::OptionalDelegatedParameter::hasValue |
( |
| ) |
const |
|
inline |
Definition at line 28 of file OptionalDelegatedParameter.h.
std::string strip_first_containing_name(std::string const &key)
std::optional< ParameterSet > pset_
std::string const & key() const
std::optional<ParameterSet> fhicl::OptionalDelegatedParameter::pset_ {std::nullopt} |
|
private |
The documentation for this class was generated from the following files: