LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "PrintAllowedConfiguration.h"
Public Member Functions | |
PrintAllowedConfiguration (std::ostream &os, bool const showParents=false, std::string const &prefix=std::string(3, ' '), bool const stlf=false) | |
void | walk_over (tt::maybe_const_t< ParameterBase, C > &) |
bool | do_before_action (tt::maybe_const_t< ParameterBase, C > &p) |
void | do_after_action (tt::maybe_const_t< ParameterBase, C > &p) |
void | do_enter_table (tt::maybe_const_t< TableBase, C > &t) |
void | do_exit_table (tt::maybe_const_t< TableBase, C > &t) |
void | do_enter_sequence (tt::maybe_const_t< SequenceBase, C > &s) |
void | do_exit_sequence (tt::maybe_const_t< SequenceBase, C > &s) |
void | do_atom (tt::maybe_const_t< AtomBase, C > &a) |
void | do_delegated_parameter (tt::maybe_const_t< DelegateBase, C > &dp) |
Private Member Functions | |
bool | before_action (ParameterBase const &) override |
void | after_action (ParameterBase const &) override |
void | enter_table (TableBase const &) override |
void | exit_table (TableBase const &) override |
void | enter_sequence (SequenceBase const &) override |
void | exit_sequence (SequenceBase const &) override |
void | atom (AtomBase const &) override |
void | delegated_parameter (DelegateBase const &) override |
void | cacheTopLevelParameter (ParameterBase const &p) |
void | maybeReleaseTopLevelParameter (ParameterBase const &p) |
bool | suppressFormat (ParameterBase const &p) |
Private Attributes | |
std::ostream & | buffer_ |
Indentation | indent_ |
bool | suppressTopLevelFormatting_ |
std::string | cachedTopLevelParameter_ {} |
std::stack< MaybeDisplayParent > | mps_ {} |
std::unordered_set< std::string > | keysWithCommas_ {} |
std::unordered_set< std::string > | keysWithEllipses_ {} |
bool | showParentsForFirstParam_ |
Definition at line 18 of file PrintAllowedConfiguration.h.
PrintAllowedConfiguration::PrintAllowedConfiguration | ( | std::ostream & | os, |
bool const | showParents = false , |
||
std::string const & | prefix = std::string(3, ' ') , |
||
bool const | stlf = false |
||
) |
Definition at line 95 of file PrintAllowedConfiguration.cc.
References indent_, showParentsForFirstParam_, and suppressTopLevelFormatting_.
|
overrideprivate |
Definition at line 157 of file PrintAllowedConfiguration.cc.
References fhicl::ATOM, buffer_, fhicl::detail::ParameterBase::has_default(), indent_, fhicl::detail::ParameterBase::is_conditional(), fhicl::detail::ParameterBase::is_optional(), fhicl::detail::ParameterBase::key(), maybeReleaseTopLevelParameter(), fhicl::detail::Indentation::modify_top(), mps_, fhicl::detail::ParameterBase::parameter_type(), and suppressFormat().
|
overrideprivate |
Definition at line 242 of file PrintAllowedConfiguration.cc.
References buffer_, indent_, and fhicl::detail::AtomBase::stringified_value().
|
overrideprivate |
Definition at line 106 of file PrintAllowedConfiguration.cc.
References buffer_, cacheTopLevelParameter(), fhicl::detail::ParameterBase::comment(), indent_, fhicl::detail::ParameterBase::is_conditional(), fhicl::detail::ParameterBase::is_optional(), fhicl::detail::is_sequence_element(), fhicl::detail::ParameterBase::key(), fhicl::detail::Indentation::modify_top(), mps_, showParentsForFirstParam_, fhicl::detail::Indentation::size(), suppressFormat(), and suppressTopLevelFormatting_.
|
inlineprivate |
Definition at line 50 of file PrintAllowedConfiguration.h.
References cachedTopLevelParameter_, and fhicl::detail::ParameterBase::key().
Referenced by before_action().
|
overrideprivate |
Definition at line 250 of file PrintAllowedConfiguration.cc.
References buffer_, and indent_.
|
inlineinherited |
Definition at line 98 of file ParameterWalker.h.
References fhicl::detail::ParameterWalker< C >::after_action().
|
inlineinherited |
Definition at line 126 of file ParameterWalker.h.
References fhicl::detail::ParameterWalker< C >::atom().
|
inlineinherited |
Definition at line 93 of file ParameterWalker.h.
References fhicl::detail::ParameterWalker< C >::before_action().
|
inlineinherited |
Definition at line 132 of file ParameterWalker.h.
References fhicl::detail::ParameterWalker< C >::atom(), fhicl::detail::ParameterWalker< C >::delegated_parameter(), fhicl::detail::ParameterWalker< C >::enter_sequence(), and fhicl::detail::ParameterWalker< C >::enter_table().
|
inlineinherited |
Definition at line 115 of file ParameterWalker.h.
References fhicl::detail::ParameterWalker< C >::enter_sequence().
|
inlineinherited |
Definition at line 104 of file ParameterWalker.h.
References fhicl::detail::ParameterWalker< C >::enter_table().
|
inlineinherited |
Definition at line 120 of file ParameterWalker.h.
References fhicl::detail::ParameterWalker< C >::exit_sequence().
|
inlineinherited |
Definition at line 109 of file ParameterWalker.h.
References fhicl::detail::ParameterWalker< C >::exit_table().
|
overrideprivate |
Definition at line 198 of file PrintAllowedConfiguration.cc.
References buffer_, fhicl::detail::SequenceBase::empty(), fhicl::detail::ParameterBase::has_default(), indent_, fhicl::detail::ParameterBase::key(), fhicl::detail::ParameterBase::parameter_type(), fhicl::detail::Indentation::push(), s, fhicl::SEQ_VECTOR, fhicl::detail::SequenceBase::size(), and util::flags::to_string().
|
overrideprivate |
Definition at line 182 of file PrintAllowedConfiguration.cc.
References buffer_, indent_, and fhicl::detail::Indentation::push().
|
overrideprivate |
Definition at line 233 of file PrintAllowedConfiguration.cc.
References buffer_, indent_, and fhicl::detail::Indentation::pop().
|
overrideprivate |
Definition at line 189 of file PrintAllowedConfiguration.cc.
References buffer_, indent_, and fhicl::detail::Indentation::pop().
|
inlineprivate |
Definition at line 57 of file PrintAllowedConfiguration.h.
References cachedTopLevelParameter_, and fhicl::detail::ParameterBase::key().
Referenced by after_action().
|
inlineprivate |
Definition at line 64 of file PrintAllowedConfiguration.h.
References cachedTopLevelParameter_, and fhicl::detail::ParameterBase::key().
Referenced by after_action(), and before_action().
|
inherited |
|
private |
Definition at line 27 of file PrintAllowedConfiguration.h.
Referenced by after_action(), atom(), before_action(), delegated_parameter(), enter_sequence(), enter_table(), exit_sequence(), and exit_table().
|
private |
Definition at line 30 of file PrintAllowedConfiguration.h.
Referenced by cacheTopLevelParameter(), maybeReleaseTopLevelParameter(), and suppressFormat().
|
private |
Definition at line 28 of file PrintAllowedConfiguration.h.
Referenced by after_action(), atom(), before_action(), delegated_parameter(), enter_sequence(), enter_table(), exit_sequence(), exit_table(), and PrintAllowedConfiguration().
|
private |
Definition at line 32 of file PrintAllowedConfiguration.h.
|
private |
Definition at line 33 of file PrintAllowedConfiguration.h.
|
private |
Definition at line 31 of file PrintAllowedConfiguration.h.
Referenced by after_action(), and before_action().
|
private |
Definition at line 34 of file PrintAllowedConfiguration.h.
Referenced by before_action(), and PrintAllowedConfiguration().
|
private |
Definition at line 29 of file PrintAllowedConfiguration.h.
Referenced by before_action(), and PrintAllowedConfiguration().