#include "/cvmfs/nova.opensciencegrid.org/externals/fhiclcpp/v4_11_01/source/fhiclcpp/type_traits.h"
Classes | |
struct | Impl |
Public Types | |
using | default_type = T |
using | value_type = T |
Public Member Functions | |
template<typename... TCARGS> | |
Table (Name &&name, TCARGS &&...tcargs) | |
template<typename... TCARGS> | |
Table (Name &&name, Comment &&comment, TCARGS &&...tcargs) | |
template<typename... TCARGS> | |
Table (Name &&name, Comment &&comment, MaybeUseFunction maybeUse, TCARGS &&...tcargs) | |
template<typename K = KeysToIgnore, typename = std::enable_if_t<tt::is_callable<K>::value>> | |
Table (ParameterSet const &pset) | |
template<typename K = KeysToIgnore, typename = std::enable_if_t<!tt::is_callable<K>::value>> | |
Table (ParameterSet const &pset, std::set< std::string > const &keysToIgnore={}) | |
auto const & | operator() () const |
ParameterSet const & | get_PSet () const |
void | validate_ParameterSet (ParameterSet const &pset, std::set< std::string > const &keysToIgnore={}) |
void | print_allowed_configuration (std::ostream &os, std::string const &tab=std::string(3, ' ')) const |
std::vector< cet::exempt_ptr< ParameterBase > > const & | members () const |
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 |
void | set_value (fhicl::ParameterSet const &ps, bool trimParents) |
void | set_par_style (par_style const vt) |
Private Types | |
using | members_t = std::vector< cet::exempt_ptr< ParameterBase >> |
Private Member Functions | |
Table (ParameterSet const &, std::set< std::string > const &, Impl) | |
void | maybe_implicitly_default () |
members_t const & | get_members () const override |
void | do_set_value (fhicl::ParameterSet const &pset, bool const trimParents) override |
Private Attributes | |
std::shared_ptr< T > | value_ {std::make_shared<T>()} |
ParameterSet | pset_ {} |
members_t | members_ |
Definition at line 30 of file type_traits.h.
using fhicl::Table< T, KeysToIgnore >::default_type = T |
|
private |
using fhicl::Table< T, KeysToIgnore >::value_type = T |
|
explicit |
Definition at line 130 of file Table.h.
|
explicit |
Definition at line 136 of file Table.h.
References fhicl::detail::AlwaysUse(), fhicl::detail::ParameterBase::comment(), fhicl::NameStackRegistry::end_of_ctor(), fhicl::Table< T, KeysToIgnore >::maybe_implicitly_default(), fhicl::detail::RegisterIfTableMember::RegisterIfTableMember(), fhicl::REQUIRED, and fhicl::Table< T, KeysToIgnore >::value_.
|
explicit |
Definition at line 152 of file Table.h.
References fhicl::detail::ParameterBase::comment(), fhicl::NameStackRegistry::end_of_ctor(), fhicl::Table< T, KeysToIgnore >::maybe_implicitly_default(), fhicl::detail::RegisterIfTableMember::RegisterIfTableMember(), fhicl::REQUIRED_CONDITIONAL, and fhicl::Table< T, KeysToIgnore >::value_.
Table::Table | ( | ParameterSet const & | pset | ) |
Table::Table | ( | ParameterSet const & | pset, |
std::set< std::string > const & | keysToIgnore = {} |
||
) |
|
private |
Definition at line 181 of file Table.h.
References fhicl::detail::AlwaysUse(), fhicl::NameStackRegistry::end_of_ctor(), fhicl::Table< T, KeysToIgnore >::maybe_implicitly_default(), fhicl::detail::RegisterIfTableMember::RegisterIfTableMember(), fhicl::REQUIRED, and fhicl::Table< T, KeysToIgnore >::validate_ParameterSet().
|
inlineinherited |
Definition at line 54 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::comment(), and fhicl::detail::ParameterBase::mdata_.
Referenced by fhicl::Atom< T >::Atom(), fhicl::detail::AtomBase::AtomBase(), fhicl::detail::DelegateBase::DelegateBase(), fhicl::OptionalAtom< T >::OptionalAtom(), fhicl::OptionalSequence< T, N >::OptionalSequence(), fhicl::OptionalSequence< T,-1ull >::OptionalSequence(), fhicl::OptionalTable< T >::OptionalTable(), fhicl::OptionalTuple< T >::OptionalTuple(), fhicl::detail::ParameterBase::ParameterBase(), fhicl::Sequence< T, N >::Sequence(), fhicl::Sequence< T,-1ull >::Sequence(), fhicl::detail::SequenceBase::SequenceBase(), fhicl::Table< T, KeysToIgnore >::Table(), fhicl::detail::TableBase::TableBase(), and fhicl::Tuple< T >::Tuple().
|
overrideprivatevirtual |
Implements fhicl::detail::ParameterBase.
Definition at line 227 of file Table.h.
References fhicl::ParameterSet::get(), fhicl::detail::ParameterBase::key(), fhicl::Table< T, KeysToIgnore >::pset_, string, and fhicl::detail::strip_first_containing_name().
Referenced by fhicl::Table< mf::service::ELdestination::MsgFormatSettings::mf::service::ELdestination::Config >::get_members().
|
inlineoverrideprivatevirtual |
Implements fhicl::detail::TableBase.
|
inline |
|
inlineinherited |
Definition at line 59 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::has_default(), and fhicl::detail::ParameterBase::mdata_.
Referenced by fhicl::Atom< T >::do_set_value(), and fhicl::Atom< T >::get_stringified_value().
|
inlineinherited |
Definition at line 69 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::is_conditional(), and fhicl::detail::ParameterBase::mdata_.
|
inlineinherited |
Definition at line 64 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::is_optional(), and fhicl::detail::ParameterBase::mdata_.
|
inlineinherited |
Definition at line 44 of file ParameterBase.h.
References fhicl::detail::ParameterMetadata::key(), fhicl::detail::ParameterBase::mdata_, and string.
Referenced by fhicl::detail::PrintAllowedConfiguration::cacheTopLevelParameter(), fhicl::OptionalSequence< T, N >::do_prepare_elements_for_validation(), fhicl::OptionalTuple< ARGS... >::do_prepare_elements_for_validation(), fhicl::OptionalSequence< T,-1ull >::do_prepare_elements_for_validation(), fhicl::Atom< T >::do_set_value(), fhicl::OptionalAtom< T >::do_set_value(), fhicl::OptionalTable< T >::do_set_value(), fhicl::Table< T, KeysToIgnore >::do_set_value(), 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().
|
private |
Definition at line 244 of file Table.h.
References fhicl::DEFAULT, fhicl::Table< T, KeysToIgnore >::members_, and fhicl::detail::ParameterBase::set_par_style().
Referenced by fhicl::Table< T, KeysToIgnore >::Table().
|
inlineinherited |
Definition at line 24 of file TableBase.h.
References fhicl::detail::TableBase::get_members().
Referenced by fhicl::OptionalTable< T >::validate_ParameterSet(), and fhicl::Table< T, KeysToIgnore >::validate_ParameterSet().
|
inlineinherited |
Definition at line 49 of file ParameterBase.h.
References fhicl::detail::ParameterBase::mdata_, fhicl::detail::ParameterMetadata::name(), and string.
Referenced by fhicl::detail::AtomBase::AtomBase(), fhicl::detail::DelegateBase::DelegateBase(), std_candles.StdCandlesPlotter::IsMC(), fhicl::detail::ParameterBase::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 |
|
inlineinherited |
Definition at line 74 of file ParameterBase.h.
References fhicl::detail::ParameterBase::mdata_, and fhicl::detail::ParameterMetadata::type().
Referenced by fhicl::detail::RegisterIfTableMember::RegisterIfTableMember().
void Table::print_allowed_configuration | ( | std::ostream & | os, |
std::string const & | tab = std::string(3, ' ') |
||
) | const |
Definition at line 216 of file Table.h.
References fhicl::detail::optional_parameter_message(), and python.hepunit::pc.
Referenced by fhicl::Table< mf::service::ELdestination::MsgFormatSettings::mf::service::ELdestination::Config >::get_PSet().
Definition at line 101 of file ParameterBase.h.
References fhicl::detail::ParameterBase::do_set_value(), fhicl::detail::ParameterBase::mdata_, and fhicl::detail::ParameterMetadata::set_par_style().
Referenced by fhicl::Table< T, KeysToIgnore >::maybe_implicitly_default().
|
inlineinherited |
Definition at line 96 of file ParameterBase.h.
References fhicl::detail::ParameterBase::do_set_value().
|
inlineinherited |
Definition at line 79 of file ParameterBase.h.
References fhicl::detail::ParameterBase::maybeUse_.
void Table::validate_ParameterSet | ( | ParameterSet const & | pset, |
std::set< std::string > const & | keysToIgnore = {} |
||
) |
Definition at line 197 of file Table.h.
References fhicl::NameStackRegistry::clear(), cet::for_all(), fhicl::NameStackRegistry::instance(), m, fhicl::detail::TableBase::members(), and fhicl::Table< T, KeysToIgnore >::pset_.
Referenced by fhicl::Table< mf::service::ELdestination::MsgFormatSettings::mf::service::ELdestination::Config >::get_PSet(), and fhicl::Table< T, KeysToIgnore >::Table().
|
private |
Definition at line 90 of file Table.h.
Referenced by fhicl::Table< mf::service::ELdestination::MsgFormatSettings::mf::service::ELdestination::Config >::get_members(), and fhicl::Table< T, KeysToIgnore >::maybe_implicitly_default().
|
private |
|
private |
Definition at line 88 of file Table.h.
Referenced by fhicl::Table< mf::service::ELdestination::MsgFormatSettings::mf::service::ELdestination::Config >::operator()(), and fhicl::Table< T, KeysToIgnore >::Table().