LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Namespaces | |
atom | |
no_defaults | |
sequence | |
table | |
yes_defaults | |
Typedefs | |
using | ps_atom_t = std::string |
using | ps_sequence_t = std::vector< std::any > |
using | ldbl = long double |
using | key_t = std::string |
using | name_t = std::string |
template<typename T > | |
using | insertion_expression_t = decltype(std::declval< std::ostream & >()<< std::declval< T const & >()) |
using | base_ptr = cet::exempt_ptr< ParameterBase > |
Enumerations | |
enum | binding_modifier : unsigned char { binding_modifier::NONE, binding_modifier::PROTECT_IGNORE, binding_modifier::PROTECT_ERROR } |
enum | print_mode { print_mode::raw, print_mode::annotated, print_mode::prefix_annotated } |
Functions | |
bool | is_sequence (std::any const &val) |
bool | is_table (std::any const &val) |
bool | is_nil (std::any const &val) |
ps_atom_t | encode (std::string const &) |
ps_atom_t | encode (char const *) |
ps_atom_t | encode (std::nullptr_t) |
ps_atom_t | encode (bool) |
ParameterSetID | encode (ParameterSet const &) |
ps_atom_t | encode (std::uintmax_t) |
template<class T > | |
std::enable_if_t< tt::is_uint< T >::value, ps_atom_t > | encode (T const &) |
ps_atom_t | encode (std::intmax_t) |
template<class T > | |
std::enable_if_t< tt::is_int< T >::value, ps_atom_t > | encode (T const &) |
ps_atom_t | encode (ldbl) |
template<class T > | |
std::enable_if_t< std::is_floating_point_v< T >, ps_atom_t > | encode (T const &) |
template<class T > | |
ps_atom_t | encode (std::complex< T > const &) |
template<class T > | |
ps_sequence_t | encode (std::vector< T > const &) |
template<class T > | |
tt::disable_if_t< tt::is_numeric< T >::value, std::string > | encode (T const &) |
void | decode (std::any const &, std::string &) |
void | decode (std::any const &, std::nullptr_t &) |
void | decode (std::any const &, bool &) |
void | decode (std::any const &, ParameterSet &) |
void | decode (std::any const &, std::uintmax_t &) |
template<class T > | |
std::enable_if_t< tt::is_uint< T >::value > | decode (std::any const &, T &) |
void | decode (std::any const &, std::intmax_t &) |
template<class T > | |
std::enable_if_t< tt::is_int< T >::value > | decode (std::any const &, T &) |
void | decode (std::any const &, ldbl &) |
template<class T > | |
std::enable_if_t< std::is_floating_point_v< T > > | decode (std::any const &, T &) |
void | decode (std::any const &, std::complex< ldbl > &) |
template<class T > | |
void | decode (std::any const &, std::complex< T > &) |
template<class T > | |
void | decode (std::any const &, std::vector< T > &) |
template<typename U > | |
void | decode_tuple (std::any const &, U &tuple) |
template<typename T , std::size_t SIZE> | |
void | decode (std::any const &a, std::array< T, SIZE > &result) |
template<typename KEY , typename VALUE > | |
void | decode (std::any const &a, std::pair< KEY, VALUE > &result) |
template<typename... ARGS> | |
void | decode (std::any const &a, std::tuple< ARGS... > &result) |
template<class T > | |
tt::disable_if_t< tt::is_numeric< T >::value > | decode (std::any const &, T &) |
template<typename TUPLE , size_t I> | |
auto | decode_entry (ps_sequence_t const &vec) |
template<typename TUPLE , size_t... I> | |
void | decode_tuple_entries (ps_sequence_t const &vec, TUPLE &result, std::index_sequence< I... >) |
std::any | encode (extended_value const &xval) |
Keys | get_names (std::string const &key) |
SequenceKey | get_sequence_indices (std::string const &key) |
bool | find_an_any (std::vector< std::size_t >::const_iterator it, std::vector< std::size_t >::const_iterator const cend, std::any &a) |
std::string | nl (std::size_t i=1) |
std::string | printed_suffix (std::string const &key, std::size_t const sz) |
std::string | print_prefix_annotated_info (std::string const &curr_info) |
std::string | print_annotated_info (std::string const &curr_info, std::string const &cached_info) |
bool | is_sequence_element (std::string const &key) |
bool | is_table_member (std::string const &key) |
std::size_t | index_for_sequence_element (std::string const &name) |
template<typename L > | |
void | try_insert (L l, std::string const &key) |
std::string | translate (error) |
void | throwOnSQLiteFailure (int rc, char *msg=nullptr) |
void | throwOnSQLiteFailure (sqlite3 *db, char *msg=nullptr) |
std::function< bool()> | AlwaysUse () |
void | check_nargs_for_bounded_sequences (std::string const &key, std::size_t expected, std::size_t provided) |
template<typename T > | |
std::string | maybe_insert (T const &t) |
std::string | optional_parameter_message (bool const with_comment=true) |
std::string | strip_first_containing_name (std::string const &key) |
std::string | strip_all_containing_names (std::string const &key) |
std::ostream & | operator<< (std::ostream &os, TableBase const &t) |
template<typename T > | |
std::set< std::string > | ensure_callable () |
std::set< std::string > & | concatenate_keys (std::set< std::string > &keys) |
template<typename H , typename... T> | |
std::set< std::string > & | concatenate_keys (std::set< std::string > &keys, H const &h, T const &...t) |
int | fhicl_get_impl (int argc, char **argv) |
template<typename T > | |
std::string | name_of () |
template<> | |
std::string | name_of< std::string > () |
Variables | |
template<typename T , typename = void> | |
constexpr bool | has_insertion_operator {false} |
using fhicl::detail::base_ptr = typedef cet::exempt_ptr<ParameterBase> |
Definition at line 16 of file MaybeDisplayParent.h.
using fhicl::detail::insertion_expression_t = typedef decltype(std::declval<std::ostream&>() << std::declval<T const&>()) |
Definition at line 12 of file maybe_insert.h.
using fhicl::detail::key_t = typedef std::string |
Definition at line 69 of file KeyAssembler.h.
using fhicl::detail::ldbl = typedef long double |
using fhicl::detail::name_t = typedef std::string |
Definition at line 70 of file KeyAssembler.h.
using fhicl::detail::ps_atom_t = typedef std::string |
using fhicl::detail::ps_sequence_t = typedef std::vector<std::any> |
|
strong |
|
strong |
|
inline |
Definition at line 10 of file ConfigPredicate.h.
Referenced by fhicl::Atom< T >::Atom(), 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::Sequence< T, N >::Sequence(), fhicl::Sequence< T,-1ull >::Sequence(), fhicl::Table< T, KeysToIgnore >::Table(), and fhicl::Tuple< T >::Tuple().
void fhicl::detail::check_nargs_for_bounded_sequences | ( | std::string const & | key, |
std::size_t | expected, | ||
std::size_t | provided | ||
) |
Definition at line 9 of file check_nargs_for_bounded_sequences.cc.
Referenced by fhicl::OptionalTuple< ARGS... >::do_prepare_elements_for_validation(), fhicl::OptionalSequence< art::InputTag >::do_prepare_elements_for_validation(), fhicl::Tuple< T >::do_prepare_elements_for_validation(), and fhicl::Sequence< float, 3u >::do_prepare_elements_for_validation().
|
inline |
Definition at line 22 of file KeysToIgnore.h.
Referenced by concatenate_keys(), and fhicl::KeysToIgnore< H, T >::operator()().
std::set<std::string>& fhicl::detail::concatenate_keys | ( | std::set< std::string > & | keys, |
H const & | h, | ||
T const &... | t | ||
) |
Definition at line 29 of file KeysToIgnore.h.
References util::begin(), concatenate_keys(), and util::end().
void fhicl::detail::decode | ( | std::any const & | , |
std::string & | |||
) |
Referenced by decode(), art::decode(), decode_entry(), decode_tuple(), encode(), is_table(), fhicl::detail::it_value_get< T, typename tt::disable_if< std::is_reference_v< T >|| std::is_pointer_v< T > >::type >::operator()(), fhicl::detail::it_value_get< std::complex< U >, typename tt::disable_if< std::is_reference_v< std::complex< U > >|| std::is_pointer_v< std::complex< U > > >::type >::operator()(), and art::detail::path_specs().
void fhicl::detail::decode | ( | std::any const & | , |
std::nullptr_t & | |||
) |
void fhicl::detail::decode | ( | std::any const & | , |
bool & | |||
) |
void fhicl::detail::decode | ( | std::any const & | , |
ParameterSet & | |||
) |
void fhicl::detail::decode | ( | std::any const & | , |
std::uintmax_t & | |||
) |
std::enable_if_t< tt::is_uint< T >::value > fhicl::detail::decode | ( | std::any const & | a, |
T & | result | ||
) |
Definition at line 214 of file coding.h.
References decode(), and value.
void fhicl::detail::decode | ( | std::any const & | , |
std::intmax_t & | |||
) |
std::enable_if_t< tt::is_int< T >::value > fhicl::detail::decode | ( | std::any const & | a, |
T & | result | ||
) |
Definition at line 225 of file coding.h.
References decode().
void fhicl::detail::decode | ( | std::any const & | , |
ldbl & | |||
) |
std::enable_if_t< std::is_floating_point_v< T > > fhicl::detail::decode | ( | std::any const & | a, |
T & | result | ||
) |
Definition at line 236 of file coding.h.
References decode().
void fhicl::detail::decode | ( | std::any const & | , |
std::complex< ldbl > & | |||
) |
void fhicl::detail::decode | ( | std::any const & | a, |
std::complex< T > & | result | ||
) |
Definition at line 247 of file coding.h.
References decode().
void fhicl::detail::decode | ( | std::any const & | a, |
std::vector< T > & | result | ||
) |
Definition at line 259 of file coding.h.
References decode(), e, fhicl::extended_value::is_a(), fhicl::parse_value_string(), fhicl::SEQUENCE, and fhicl::type_mismatch.
void fhicl::detail::decode | ( | std::any const & | a, |
std::array< T, SIZE > & | result | ||
) |
void fhicl::detail::decode | ( | std::any const & | a, |
std::pair< KEY, VALUE > & | result | ||
) |
void fhicl::detail::decode | ( | std::any const & | a, |
std::tuple< ARGS... > & | result | ||
) |
tt::disable_if_t< tt::is_numeric< T >::value > fhicl::detail::decode | ( | std::any const & | a, |
T & | result | ||
) |
auto fhicl::detail::decode_entry | ( | ps_sequence_t const & | vec | ) |
Definition at line 301 of file coding.h.
References decode(), and fhicl::TUPLE.
void fhicl::detail::decode_tuple | ( | std::any const & | a, |
U & | tuple | ||
) |
Definition at line 321 of file coding.h.
References decode(), decode_tuple_entries(), and tmp.
Referenced by decode(), and is_table().
void fhicl::detail::decode_tuple_entries | ( | ps_sequence_t const & | vec, |
TUPLE & | result, | ||
std::index_sequence< I... > | |||
) |
Definition at line 310 of file coding.h.
Referenced by decode_tuple().
std::any fhicl::detail::encode | ( | extended_value const & | xval | ) |
Definition at line 24 of file encode_extended_value.cc.
References fhicl::BOOL, fhicl::COMPLEX, e, util::quantities::concepts::encode(), fhicl::NIL, fhicl::NUMBER, fhicl::ParameterSetRegistry::put(), fhicl::ParameterSet::put(), fhicl::SEQUENCE, fhicl::STRING, fhicl::TABLE, fhicl::TABLEID, fhicl::extended_value::tag, fhicl::type_mismatch, fhicl::UNKNOWN, and value.
ps_atom_t fhicl::detail::encode | ( | std::string const & | value | ) |
Definition at line 83 of file coding.cc.
References fhicl::extended_value::is_a(), fhicl::parse_value_string(), fhicl::STRING, and fhicl::type_mismatch.
Referenced by encode(), is_table(), fhicl::intermediate_table::put(), fhicl::ParameterSet::put(), and fhicl::intermediate_table::putNil().
ps_atom_t fhicl::detail::encode | ( | char const * | value | ) |
ps_atom_t fhicl::detail::encode | ( | std::nullptr_t | ) |
Definition at line 107 of file coding.cc.
References canon_nil().
ps_atom_t fhicl::detail::encode | ( | bool | value | ) |
ParameterSetID fhicl::detail::encode | ( | ParameterSet const & | value | ) |
Definition at line 119 of file coding.cc.
References fhicl::ParameterSetRegistry::put().
ps_atom_t fhicl::detail::encode | ( | std::uintmax_t | value | ) |
std::enable_if_t<tt::is_uint<T>::value, ps_atom_t> fhicl::detail::encode | ( | T const & | ) |
ps_atom_t fhicl::detail::encode | ( | std::intmax_t | value | ) |
Definition at line 137 of file coding.cc.
References util::abs(), and encode().
std::enable_if_t<tt::is_int<T>::value, ps_atom_t> fhicl::detail::encode | ( | T const & | ) |
Definition at line 146 of file coding.cc.
References atom_rep(), fhicl::BOOL, canon_nil(), fhicl::COMPLEX, decode(), encode(), fhicl::ParameterSetRegistry::get(), fhicl::extended_value::is_a(), literal_infinity(), literal_true(), fhicl::NUMBER, fhicl::parse_value_string(), fhicl::type_mismatch, and value.
std::enable_if_t<std::is_floating_point_v<T>, ps_atom_t> fhicl::detail::encode | ( | T const & | ) |
ps_atom_t fhicl::detail::encode | ( | std::complex< T > const & | ) |
ps_sequence_t fhicl::detail::encode | ( | std::vector< T > const & | ) |
tt::disable_if_t< tt::is_numeric< T >::value, std::string > fhicl::detail::encode | ( | T const & | value | ) |
std::set<std::string> fhicl::detail::ensure_callable | ( | ) |
Definition at line 15 of file KeysToIgnore.h.
int fhicl::detail::fhicl_get_impl | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 231 of file fhicl_get_impl.cc.
References e, util::empty(), and fhicl::ParameterSet::make().
Referenced by main().
bool fhicl::detail::find_an_any | ( | std::vector< std::size_t >::const_iterator | it, |
std::vector< std::size_t >::const_iterator const | cend, | ||
std::any & | a | ||
) |
Definition at line 96 of file ParameterSetImplHelpers.cc.
Referenced by fhicl::ParameterSet::find_one_(), fhicl::ParameterSet::get_one_(), and fhicl::ParameterSet::key_is_type_().
Keys fhicl::detail::get_names | ( | std::string const & | key | ) |
Definition at line 38 of file ParameterSetImplHelpers.cc.
References fhicl::cant_find, and fhicl::detail::Keys::last().
Referenced by fhicl::ParameterSet::get_if_present(), fhicl::ParameterSet::has_key(), and fhicl::ParameterSet::key_is_type_().
SequenceKey fhicl::detail::get_sequence_indices | ( | std::string const & | key | ) |
Definition at line 78 of file ParameterSetImplHelpers.cc.
References fhicl::detail::SequenceKey::indices(), and fhicl::detail::SequenceKey::name().
Referenced by fhicl::ParameterSet::find_one_(), fhicl::ParameterSet::get_one_(), and fhicl::ParameterSet::key_is_type_().
std::size_t fhicl::detail::index_for_sequence_element | ( | std::string const & | name | ) |
Definition at line 111 of file printing_helpers.cc.
References e, is_sequence_element(), and fhicl::other.
Referenced by is_table_member().
bool fhicl::detail::is_nil | ( | std::any const & | val | ) |
Definition at line 71 of file coding.cc.
References atom_rep(), canon_nil(), is_sequence(), and is_table().
Referenced by fhicl::ParameterSet::insert_or_replace_compatible_(), and is_table().
|
inline |
Definition at line 49 of file coding.h.
Referenced by atom_rep(), fhicl::detail::ValidateThenSet::before_action(), art::decode(), fhicl::detail::SearchAllowedConfiguration::form_absolute(), fhicl::ParameterSet::insert_or_replace_compatible_(), fhicl::ParameterSet::is_key_to_atom(), fhicl::ParameterSet::is_key_to_sequence(), is_nil(), fhicl::ParameterSet::stringify_(), fhicl::ParameterSet::walk(), and fhicl::detail::ParameterWalker< C >::walk_over().
|
inline |
Definition at line 64 of file printing_helpers.h.
References fhicl::detail::sequence::closing_brace().
Referenced by fhicl::detail::PrintAllowedConfiguration::before_action(), index_for_sequence_element(), is_table_member(), fhicl::detail::table::printed_prefix(), fhicl::detail::sequence::printed_prefix(), and fhicl::detail::atom::printed_prefix().
|
inline |
Definition at line 55 of file coding.h.
References decode(), decode_tuple(), encode(), is_nil(), and value.
Referenced by atom_rep(), fhicl::detail::ValuePrinter::before_action(), fhicl::detail::Prettifier::before_action(), fhicl::detail::SearchAllowedConfiguration::form_absolute(), fhicl::ParameterSet::get_pset_names(), fhicl::ParameterSet::insert_or_replace_compatible_(), fhicl::ParameterSet::is_key_to_atom(), fhicl::ParameterSet::is_key_to_table(), is_nil(), fhicl::detail::RegisterIfTableMember::RegisterIfTableMember(), fhicl::ParameterSet::stringify_(), fhicl::ParameterSet::walk(), and fhicl::detail::ParameterWalker< C >::walk_over().
|
inline |
Definition at line 71 of file printing_helpers.h.
References index_for_sequence_element(), and is_sequence_element().
Referenced by fhicl::detail::RegisterIfTableMember::RegisterIfTableMember().
std::string fhicl::detail::maybe_insert | ( | T const & | t | ) |
Definition at line 23 of file maybe_insert.h.
Referenced by fhicl::TupleAs< T(ARGS...)>::conversion_comment(), and fhicl::TableAs< T, Config >::conversion_comment().
std::string fhicl::detail::name_of | ( | ) |
std::string fhicl::detail::name_of< std::string > | ( | ) |
|
inline |
Definition at line 18 of file printing_helpers.h.
References print_annotated_info(), print_prefix_annotated_info(), and printed_suffix().
Referenced by fhicl::detail::Prettifier::atom(), fhicl::detail::ValuePrinter::atom(), fhicl::detail::PrettifierAnnotated::atom(), fhicl::detail::PrettifierPrefixAnnotated::atom(), recob::dumper::DumpPCAxis(), recob::dumper::DumpSpacePoint(), fhicl::detail::PrettifierAnnotated::enter_sequence(), fhicl::detail::PrettifierPrefixAnnotated::enter_sequence(), fhicl::detail::PrettifierAnnotated::enter_table(), fhicl::detail::PrettifierPrefixAnnotated::enter_table(), fhicl::detail::ValuePrinter::exit_sequence(), fhicl::detail::Prettifier::exit_sequence(), fhicl::detail::PrettifierAnnotated::exit_sequence(), fhicl::detail::PrettifierPrefixAnnotated::exit_sequence(), fhicl::detail::ValuePrinter::exit_table(), fhicl::detail::Prettifier::exit_table(), fhicl::detail::PrettifierAnnotated::exit_table(), fhicl::detail::PrettifierPrefixAnnotated::exit_table(), fhicl::detail::Prettifier::maybe_nl_(), and fhicl::detail::ValuePrinter::maybe_nl_().
std::ostream & fhicl::detail::operator<< | ( | std::ostream & | os, |
TableBase const & | t | ||
) |
Definition at line 139 of file TableBase.cc.
References fhicl::detail::TableBase::print_allowed_configuration().
|
inline |
Definition at line 6 of file optional_parameter_message.h.
Referenced by fhicl::detail::ValidateThenSet::check_keys(), and fhicl::detail::TableBase::print_allowed_configuration().
std::string fhicl::detail::print_annotated_info | ( | std::string const & | curr_info, |
std::string const & | cached_info | ||
) |
Definition at line 29 of file printing_helpers.cc.
Referenced by fhicl::detail::PrettifierAnnotated::atom(), fhicl::detail::PrettifierAnnotated::enter_sequence(), fhicl::detail::PrettifierAnnotated::enter_table(), and nl().
std::string fhicl::detail::print_prefix_annotated_info | ( | std::string const & | curr_info | ) |
Definition at line 41 of file printing_helpers.cc.
Referenced by fhicl::detail::PrettifierPrefixAnnotated::atom(), fhicl::detail::PrettifierPrefixAnnotated::enter_sequence(), fhicl::detail::PrettifierPrefixAnnotated::enter_table(), and nl().
std::string fhicl::detail::printed_suffix | ( | std::string const & | key, |
std::size_t const | sz | ||
) |
Definition at line 50 of file printing_helpers.cc.
Referenced by fhicl::detail::Prettifier::atom(), fhicl::detail::ValuePrinter::atom(), fhicl::detail::PrettifierAnnotated::atom(), fhicl::detail::PrettifierPrefixAnnotated::atom(), fhicl::detail::ValuePrinter::exit_sequence(), fhicl::detail::Prettifier::exit_sequence(), fhicl::detail::PrettifierAnnotated::exit_sequence(), fhicl::detail::PrettifierPrefixAnnotated::exit_sequence(), fhicl::detail::Prettifier::exit_table(), fhicl::detail::ValuePrinter::exit_table(), fhicl::detail::PrettifierAnnotated::exit_table(), fhicl::detail::PrettifierPrefixAnnotated::exit_table(), and nl().
std::string fhicl::detail::strip_all_containing_names | ( | std::string const & | key | ) |
Definition at line 14 of file strip_containing_names.cc.
std::string fhicl::detail::strip_first_containing_name | ( | std::string const & | key | ) |
Definition at line 7 of file strip_containing_names.cc.
Referenced by fhicl::detail::ValidateThenSet::before_action(), fhicl::detail::ValidateThenSet::delegated_parameter(), fhicl::OptionalSequence< T, N >::do_preset_value(), fhicl::Sequence< float, 3u >::do_preset_value(), fhicl::OptionalSequence< T,-1ull >::do_preset_value(), fhicl::Sequence< T,-1ull >::do_preset_value(), fhicl::Atom< T >::do_set_value(), fhicl::OptionalAtom< T >::do_set_value(), fhicl::detail::ValidateThenSet::enter_sequence(), fhicl::DelegatedParameter::get(), fhicl::OptionalDelegatedParameter::get_if_present(), fhicl::OptionalDelegatedParameter::hasValue(), fhicl::detail::TableBase::maybe_select_pset(), and fhicl::detail::TableBase::select_pset().
void fhicl::detail::throwOnSQLiteFailure | ( | int | rc, |
char * | msg = nullptr |
||
) |
Definition at line 41 of file ParameterSetRegistry.cc.
References fhicl::sql_error.
Referenced by fhicl::ParameterSetRegistry::exportTo(), fhicl::ParameterSetRegistry::find_(), fhicl::ParameterSetRegistry::importFrom(), throwOnSQLiteFailure(), and fhicl::ParameterSetRegistry::~ParameterSetRegistry().
void fhicl::detail::throwOnSQLiteFailure | ( | sqlite3 * | db, |
char * | msg = nullptr |
||
) |
Definition at line 55 of file ParameterSetRegistry.cc.
References fhicl::cant_open_db, and throwOnSQLiteFailure().
std::string fhicl::detail::translate | ( | error | code | ) |
Definition at line 12 of file exception.cc.
References fhicl::cant_find, fhicl::cant_happen, fhicl::cant_insert, fhicl::cant_open_db, fhicl::number_is_too_large, fhicl::other, fhicl::parse_error, fhicl::protection_violation, fhicl::sql_error, fhicl::type_mismatch, and fhicl::unimplemented.
void fhicl::detail::try_insert | ( | L | l, |
std::string const & | key | ||
) |
Definition at line 11 of file try_blocks.h.
References fhicl::cant_insert, and e.
Referenced by fhicl::ParameterSet::put(), fhicl::ParameterSet::put_or_replace(), and fhicl::ParameterSet::put_or_replace_compatible().
constexpr bool fhicl::detail::has_insertion_operator {false} |
Definition at line 15 of file maybe_insert.h.