#include "PrintAllowedConfiguration.h"
|
| PrintAllowedConfiguration (std::ostream &os, bool const showParents=false, std::string const &prefix=std::string(3, ' '), bool const stlf=false) |
|
| ~PrintAllowedConfiguration () |
|
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) |
|
Definition at line 15 of file PrintAllowedConfiguration.h.
PrintAllowedConfiguration::PrintAllowedConfiguration |
( |
std::ostream & |
os, |
|
|
bool const |
showParents = false , |
|
|
std::string const & |
prefix = std::string(3, ' ') , |
|
|
bool const |
stlf = false |
|
) |
| |
PrintAllowedConfiguration::~PrintAllowedConfiguration |
( |
| ) |
|
|
default |
void PrintAllowedConfiguration::after_action |
( |
ParameterBase const & |
p | ) |
|
|
overrideprivate |
Definition at line 161 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().
169 if (p.is_conditional()) {
173 }
else if (p.is_optional()) {
bool suppressFormat(ParameterBase const &p)
void maybeReleaseTopLevelParameter(ParameterBase const &p)
void modify_top(std::string const &s)
std::stack< MaybeDisplayParent > mps_
std::unordered_set< std::string > keysWithCommas_
std::unordered_set< std::string > keysWithEllipses_
void PrintAllowedConfiguration::atom |
( |
AtomBase const & |
a | ) |
|
|
overrideprivate |
bool PrintAllowedConfiguration::before_action |
( |
ParameterBase const & |
p | ) |
|
|
overrideprivate |
Definition at line 110 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_.
118 if (p.is_conditional()) {
125 if (!p.comment().empty()) {
126 if (!p.is_conditional())
128 for (
auto const& line : cet::split_by_regex(p.comment(), reNewLine))
144 if (p.is_optional()) {
145 if (p.is_conditional())
bool suppressFormat(ParameterBase const &p)
bool is_sequence_element(std::string const &key)
void modify_top(std::string const &s)
bool showParentsForFirstParam_
std::stack< MaybeDisplayParent > mps_
bool suppressTopLevelFormatting_
void cacheTopLevelParameter(ParameterBase const &p)
void fhicl::detail::PrintAllowedConfiguration::cacheTopLevelParameter |
( |
ParameterBase const & |
p | ) |
|
|
inlineprivate |
void PrintAllowedConfiguration::delegated_parameter |
( |
DelegateBase const & |
dp | ) |
|
|
overrideprivate |
void PrintAllowedConfiguration::enter_sequence |
( |
SequenceBase const & |
s | ) |
|
|
overrideprivate |
void PrintAllowedConfiguration::enter_table |
( |
TableBase const & |
t | ) |
|
|
overrideprivate |
void PrintAllowedConfiguration::exit_sequence |
( |
SequenceBase const & |
| ) |
|
|
overrideprivate |
void PrintAllowedConfiguration::exit_table |
( |
TableBase const & |
| ) |
|
|
overrideprivate |
void fhicl::detail::PrintAllowedConfiguration::maybeReleaseTopLevelParameter |
( |
ParameterBase const & |
p | ) |
|
|
inlineprivate |
bool fhicl::detail::PrintAllowedConfiguration::suppressFormat |
( |
ParameterBase const & |
p | ) |
|
|
inlineprivate |
std::ostream& fhicl::detail::PrintAllowedConfiguration::buffer_ |
|
private |
std::string fhicl::detail::PrintAllowedConfiguration::cachedTopLevelParameter_ {} |
|
private |
Indentation fhicl::detail::PrintAllowedConfiguration::indent_ |
|
private |
std::unordered_set<std::string> fhicl::detail::PrintAllowedConfiguration::keysWithCommas_ {} |
|
private |
std::unordered_set<std::string> fhicl::detail::PrintAllowedConfiguration::keysWithEllipses_ {} |
|
private |
bool fhicl::detail::PrintAllowedConfiguration::showParentsForFirstParam_ |
|
private |
bool fhicl::detail::PrintAllowedConfiguration::suppressTopLevelFormatting_ |
|
private |
The documentation for this class was generated from the following files: