Public Member Functions | |
std::string | key () const |
std::string | name () const |
std::string | 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 trimParents) |
void | set_par_style (par_style const vt) |
void | set_key (std::string const &key) |
Private Member Functions | |
virtual void | do_set_value (fhicl::ParameterSet const &, bool trimParents)=0 |
Private Attributes | |
ParameterMetadata | mdata_ |
std::function< bool()> | maybeUse_ |
Definition at line 41 of file ParameterBase.h.
|
inline |
Definition at line 84 of file ParameterBase.h.
References comment(), maybeUse_, name(), and ~ParameterBase().
|
virtualdefault |
Referenced by ParameterBase().
|
inline |
Definition at line 54 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::comment(), and mdata_.
Referenced by fhicl::detail::AtomBase::AtomBase(), fhicl::detail::DelegateBase::DelegateBase(), fhicl::OptionalTuple< TYPES >::OptionalTuple(), ParameterBase(), fhicl::detail::SequenceBase::SequenceBase(), fhicl::detail::TableBase::TableBase(), and fhicl::Tuple< TYPES >::Tuple().
|
privatepure virtual |
Implemented in fhicl::Sequence< T,-1ull >, fhicl::OptionalSequence< T,-1ull >, fhicl::OptionalTuple< TYPES >, fhicl::OptionalTuple< ARGS... >, fhicl::Sequence< T, N >, fhicl::Sequence< double >, fhicl::Sequence< std::string >, fhicl::Sequence< int >, fhicl::Sequence< string >, fhicl::Tuple< TYPES >, fhicl::Table< T, KeysToIgnore >, fhicl::Table< art::ProducerTable::FullConfig< UserConfig, ImplicitConfig >, KeysToIgnore_t >, fhicl::Table< art::TimeTracker::Config::DBoutput >, fhicl::Table< art::EDAnalyzer::Table::FullConfig< UserConfig >, KeysToIgnore_t >, fhicl::Table< calib::calib::ShapeTableParams >, fhicl::Table< art::MemoryTracker::Config::DBoutput >, fhicl::Table< T >, fhicl::Table< rsim::GainParams >, fhicl::Table< T, fhicl::KeysToIgnore >, fhicl::Table< art::ToolConfigTable::FullConfig< UserConfig >, KeysToIgnore_t >, fhicl::Table< mf::service::ELdestination::MsgFormatSettings::mf::service::ELdestination::Config >, fhicl::Table< art::ClosingCriteria::art::RootOutput::Config >, fhicl::OptionalSequence< T, N >, fhicl::OptionalTable< T >, fhicl::OptionalTable< art::ClosingCriteria::art::TFileService::Config >, fhicl::OptionalSequence< Table< T >< art::RootInputFileSequence::Config::SecondaryFile > >, fhicl::OptionalAtom< T >, fhicl::OptionalAtom< std::string >, fhicl::OptionalAtom< EventNumber_t >, fhicl::OptionalAtom< bool >, fhicl::OptionalAtom< SubRunNumber_t >, fhicl::OptionalAtom< RunNumber_t >, fhicl::Atom< T >, fhicl::Atom< uint32_t >, fhicl::Atom< int64_t >, fhicl::Atom< double >, fhicl::Atom< unsigned long long >, fhicl::Atom< std::string >, fhicl::Atom< EventNumber_t >, fhicl::Atom< float >, fhicl::Atom< int >, fhicl::Atom< art::InputTag >, fhicl::Atom< unsigned int >, fhicl::Atom< string >, fhicl::Atom< size_t >, fhicl::Atom< unsigned >, fhicl::Atom< bool >, fhicl::Atom< std::int64_t >, fhicl::OptionalDelegatedParameter, and fhicl::DelegatedParameter.
Referenced by set_key(), and set_value().
|
inline |
Definition at line 59 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::has_default(), and mdata_.
|
inline |
Definition at line 69 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::is_conditional(), and mdata_.
|
inline |
Definition at line 64 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::is_optional(), and mdata_.
|
inline |
Definition at line 44 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::key(), mdata_, and string.
Referenced by fhicl::detail::PrintAllowedConfiguration::cacheTopLevelParameter(), fhicl::OptionalSequence< Table< T >< art::RootInputFileSequence::Config::SecondaryFile > >::do_prepare_elements_for_validation(), fhicl::OptionalTuple< ARGS... >::do_prepare_elements_for_validation(), fhicl::OptionalSequence< T,-1ull >::do_prepare_elements_for_validation(), fhicl::DelegatedParameter::get(), fhicl::OptionalDelegatedParameter::get_if_present(), fhicl::OptionalDelegatedParameter::hasValue(), fhicl::detail::MaybeDisplayParent::is_sequence_element(), fhicl::detail::PrintAllowedConfiguration::maybeReleaseTopLevelParameter(), fhicl::detail::RegisterIfTableMember::RegisterIfTableMember(), and fhicl::detail::PrintAllowedConfiguration::suppressFormat().
|
inline |
Definition at line 49 of file ParameterBase.h.
References mdata_, fhicl::detail::ParameterMetadata::name(), and string.
Referenced by fhicl::detail::AtomBase::AtomBase(), fhicl::detail::DelegateBase::DelegateBase(), std_candles.StdCandlesPlotter::IsMC(), ParameterBase(), run_unfold_ppfx_multiprocess.Consumer::run(), run_unfold_systs_multiprocess.Consumer::run(), run_unfold_genie_multiprocess.Consumer::run(), fhicl::detail::SequenceBase::SequenceBase(), and fhicl::detail::TableBase::TableBase().
|
inline |
Definition at line 74 of file ParameterBase.h.
References mdata_, and fhicl::detail::ParameterMetadata::type().
Referenced by fhicl::detail::RegisterIfTableMember::RegisterIfTableMember().
|
inline |
Definition at line 106 of file ParameterBase.h.
References do_set_value(), mdata_, and fhicl::detail::ParameterMetadata::set_key().
Definition at line 101 of file ParameterBase.h.
References mdata_, and fhicl::detail::ParameterMetadata::set_par_style().
Referenced by art::RootOutput::Config::Config().
|
inline |
Definition at line 96 of file ParameterBase.h.
References do_set_value().
|
inline |
Definition at line 79 of file ParameterBase.h.
References maybeUse_.
|
private |
Definition at line 116 of file ParameterBase.h.
Referenced by ParameterBase(), and should_use().
|
private |
Definition at line 115 of file ParameterBase.h.
Referenced by comment(), has_default(), is_conditional(), is_optional(), key(), name(), parameter_type(), set_key(), and set_par_style().