LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "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={}) | |
T const & | operator() () const |
ParameterSet const & | get_PSet () const |
void | print_allowed_configuration (std::ostream &os, std::string const &tab=std::string(3, ' ')) const |
std::vector< cet::exempt_ptr< ParameterBase > > const & | members () const |
void | validate (ParameterSet const &pset, std::set< std::string > const &ignorable_keys={}) |
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 | preset_value (fhicl::ParameterSet const &ps) |
void | set_par_style (par_style const vt) |
Protected Member Functions | |
void | finalize_members () |
void | maybe_implicitly_default () |
bool | has_value () const |
ParameterSet const & | get_pset () const |
ParameterSet const & | guarantee_pset () const |
Private Member Functions | |
Table (ParameterSet const &, std::set< std::string > const &, Impl) | |
Private Attributes | |
std::shared_ptr< T > | value_ {std::make_shared<T>()} |
Definition at line 30 of file type_traits.h.
using fhicl::Table< T, KeysToIgnore >::default_type = T |
using fhicl::Table< T, KeysToIgnore >::value_type = T |
|
explicit |
|
explicit |
Definition at line 98 of file Table.h.
References fhicl::detail::AlwaysUse(), fhicl::detail::ParameterBase::comment(), fhicl::NameStackRegistry::end_of_ctor(), fhicl::detail::TableBase::finalize_members(), fhicl::detail::TableBase::maybe_implicitly_default(), fhicl::detail::ParameterBase::name(), fhicl::detail::RegisterIfTableMember::RegisterIfTableMember(), fhicl::REQUIRED, and fhicl::Table< T, KeysToIgnore >::value_.
|
explicit |
Definition at line 115 of file Table.h.
References fhicl::detail::ParameterBase::comment(), fhicl::NameStackRegistry::end_of_ctor(), fhicl::detail::TableBase::finalize_members(), fhicl::detail::TableBase::maybe_implicitly_default(), fhicl::detail::ParameterBase::name(), fhicl::detail::RegisterIfTableMember::RegisterIfTableMember(), fhicl::REQUIRED_CONDITIONAL, and fhicl::Table< T, KeysToIgnore >::value_.
fhicl::Table< T, KeysToIgnore >::Table | ( | ParameterSet const & | pset | ) |
fhicl::Table< T, KeysToIgnore >::Table | ( | ParameterSet const & | pset, |
std::set< std::string > const & | keysToIgnore = {} |
||
) |
|
private |
Definition at line 145 of file Table.h.
References fhicl::detail::AlwaysUse(), fhicl::NameStackRegistry::end_of_ctor(), fhicl::detail::TableBase::finalize_members(), fhicl::detail::TableBase::maybe_implicitly_default(), fhicl::detail::RegisterIfTableMember::RegisterIfTableMember(), fhicl::REQUIRED, and fhicl::detail::TableBase::validate().
|
inherited |
Definition at line 16 of file ParameterBase.cc.
References fhicl::detail::ParameterMetadata::comment(), and fhicl::detail::ParameterBase::mdata_.
Referenced by fhicl::Atom< T >::Atom(), fhicl::detail::AtomBase::AtomBase(), fhicl::detail::PrintAllowedConfiguration::before_action(), fhicl::detail::DelegateBase::DelegateBase(), fhicl::DelegatedParameter::DelegatedParameter(), fhicl::OptionalAtom< T >::OptionalAtom(), fhicl::OptionalDelegatedParameter::OptionalDelegatedParameter(), 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().
|
protectedinherited |
Definition at line 37 of file TableBase.cc.
References fhicl::detail::TableBase::members_, and fhicl::detail::TableMemberRegistry::release_members().
Referenced by fhicl::OptionalTable< T >::OptionalTable(), and fhicl::Table< T, KeysToIgnore >::Table().
|
protectedinherited |
|
inline |
Definition at line 70 of file Table.h.
Referenced by evgen::ActiveVolumeVertexSampler::ActiveVolumeVertexSampler().
|
protectedinherited |
|
inherited |
Definition at line 21 of file ParameterBase.cc.
References fhicl::detail::ParameterMetadata::has_default(), and fhicl::detail::ParameterBase::mdata_.
Referenced by fhicl::detail::PrintAllowedConfiguration::after_action(), fhicl::detail::ValidateThenSet::before_action(), fhicl::Atom< T >::do_set_value(), fhicl::detail::PrintAllowedConfiguration::enter_sequence(), fhicl::Atom< T >::get_stringified_value(), and fhicl::TableAs< T, Config >::operator()().
|
protectedinherited |
|
inherited |
Definition at line 31 of file ParameterBase.cc.
References fhicl::detail::ParameterMetadata::is_conditional(), and fhicl::detail::ParameterBase::mdata_.
Referenced by fhicl::detail::PrintAllowedConfiguration::after_action(), and fhicl::detail::PrintAllowedConfiguration::before_action().
|
inherited |
Definition at line 26 of file ParameterBase.cc.
References fhicl::detail::ParameterMetadata::is_optional(), and fhicl::detail::ParameterBase::mdata_.
Referenced by fhicl::detail::PrintAllowedConfiguration::after_action(), fhicl::detail::ValidateThenSet::before_action(), fhicl::detail::PrintAllowedConfiguration::before_action(), and fhicl::detail::TableBase::do_set_value().
|
inherited |
Definition at line 6 of file ParameterBase.cc.
References fhicl::detail::ParameterMetadata::key(), and fhicl::detail::ParameterBase::mdata_.
Referenced by fhicl::detail::PrintAllowedConfiguration::after_action(), fhicl::detail::ValidateThenSet::before_action(), fhicl::detail::PrintAllowedConfiguration::before_action(), fhicl::detail::SearchAllowedConfiguration::before_action(), fhicl::detail::PrintAllowedConfiguration::cacheTopLevelParameter(), detinfo::LArPropertiesStandard::Configure(), fhicl::OptionalTuple< ARGS... >::do_prepare_elements_for_validation(), fhicl::OptionalSequence< art::InputTag >::do_prepare_elements_for_validation(), fhicl::OptionalSequence< T,-1ull >::do_prepare_elements_for_validation(), fhicl::OptionalSequence< T, N >::do_preset_value(), fhicl::OptionalSequence< T,-1ull >::do_preset_value(), fhicl::Atom< T >::do_set_value(), fhicl::OptionalAtom< T >::do_set_value(), fhicl::detail::ValidateThenSet::enter_sequence(), fhicl::detail::PrintAllowedConfiguration::enter_sequence(), fhicl::detail::SearchAllowedConfiguration::form_absolute(), fhicl::DelegatedParameter::get(), fhicl::OptionalDelegatedParameter::get_if_present(), fhicl::OptionalDelegatedParameter::hasValue(), fhicl::detail::MaybeDisplayParent::is_sequence_element(), fhicl::detail::TableBase::maybe_select_pset(), fhicl::detail::PrintAllowedConfiguration::maybeReleaseTopLevelParameter(), fhicl::detail::RegisterIfTableMember::RegisterIfTableMember(), fhicl::detail::TableBase::select_pset(), and fhicl::detail::PrintAllowedConfiguration::suppressFormat().
|
protectedinherited |
Definition at line 45 of file TableBase.cc.
References fhicl::DEFAULT, fhicl::detail::TableBase::members_, and fhicl::detail::ParameterBase::set_par_style().
Referenced by fhicl::Table< T, KeysToIgnore >::Table().
|
inherited |
Definition at line 31 of file TableBase.cc.
References fhicl::detail::TableBase::members_.
|
inherited |
Definition at line 11 of file ParameterBase.cc.
References fhicl::detail::ParameterBase::mdata_, and fhicl::detail::ParameterMetadata::name().
Referenced by fhicl::Atom< T >::Atom(), fhicl::detail::AtomBase::AtomBase(), fhicl::detail::DelegateBase::DelegateBase(), fhicl::detail::ValidateThenSet::delegated_parameter(), fhicl::DelegatedParameter::DelegatedParameter(), fhicl::OptionalAtom< T >::OptionalAtom(), fhicl::OptionalDelegatedParameter::OptionalDelegatedParameter(), 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().
|
inline |
|
inherited |
Definition at line 36 of file ParameterBase.cc.
References fhicl::detail::ParameterBase::mdata_, and fhicl::detail::ParameterMetadata::type().
Referenced by fhicl::detail::PrintAllowedConfiguration::after_action(), fhicl::detail::ValidateThenSet::before_action(), fhicl::detail::PrintAllowedConfiguration::enter_sequence(), fhicl::detail::SearchAllowedConfiguration::form_absolute(), and fhicl::detail::RegisterIfTableMember::RegisterIfTableMember().
|
inherited |
Definition at line 63 of file ParameterBase.cc.
References fhicl::detail::ParameterBase::do_preset_value().
Referenced by fhicl::detail::ValidateThenSet::before_action().
|
inherited |
Definition at line 22 of file TableBase.cc.
References fhicl::detail::optional_parameter_message(), and fhicl::detail::ParameterWalker< C >::walk_over().
Referenced by art::operator<<(), and fhicl::detail::operator<<().
|
inherited |
Definition at line 68 of file ParameterBase.cc.
References fhicl::detail::ParameterBase::mdata_, and fhicl::detail::ParameterMetadata::set_par_style().
Referenced by fhicl::detail::TableBase::maybe_implicitly_default(), and fhicl::TableAs< T, Config >::TableAs().
|
inherited |
Definition at line 58 of file ParameterBase.cc.
References fhicl::detail::ParameterBase::do_set_value().
Referenced by fhicl::detail::ValidateThenSet::after_action().
|
inherited |
Definition at line 41 of file ParameterBase.cc.
References fhicl::detail::ParameterBase::maybeUse_.
Referenced by fhicl::detail::ValidateThenSet::before_action().
|
inherited |
Definition at line 56 of file TableBase.cc.
References fhicl::NameStackRegistry::clear(), fhicl::detail::TableBase::members_, and fhicl::detail::TableBase::pset_.
Referenced by fhicl::OptionalTable< T >::OptionalTable(), and fhicl::Table< T, KeysToIgnore >::Table().
|
private |
Definition at line 81 of file Table.h.
Referenced by fhicl::Table< trkf::TrackStatePropagator::trkmkr::KalmanFilterFitTrackMaker::Config >::operator()(), and fhicl::Table< T, KeysToIgnore >::Table().