LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "PrettifierPrefixAnnotated.h"
Public Types | |
using | name_t = std::string |
using | key_t = std::string |
using | any_t = std::any |
Public Member Functions | |
std::string | result () const |
void | do_enter_table (key_t const &k, any_t const &a) |
void | do_enter_sequence (key_t const &k, any_t const &a) |
void | do_atom (key_t const &k, any_t const &a) |
void | do_before_action (key_t const &k, any_t const &a, ParameterSet const *ps) |
void | do_after_action (key_t const &k) |
void | do_exit_table (key_t const &k, any_t const &a) |
void | do_exit_sequence (key_t const &k, any_t const &a) |
Private Member Functions | |
void | before_action (key_t const &, any_t const &, ParameterSet const *) override |
void | enter_table (key_t const &, any_t const &) override |
void | enter_sequence (key_t const &, any_t const &) override |
void | exit_table (key_t const &, any_t const &) override |
void | exit_sequence (key_t const &, any_t const &) override |
void | atom (key_t const &, any_t const &) override |
void | push_size_ (any_t const &) |
void | pop_size_ () |
std::string | print_full_key_ (name_t const &k) const |
Private Attributes | |
std::stringstream | buffer_ {} |
Indentation | indent_ {} |
std::string | info_ {} |
std::stack< std::size_t > | sequence_sizes_ {{-1u}} |
std::size_t | curr_size_ {} |
std::vector< name_t > | name_stack_ {} |
Definition at line 146 of file PrettifierPrefixAnnotated.h.
|
inherited |
Definition at line 79 of file ParameterSetWalker.h.
|
inherited |
Definition at line 78 of file ParameterSetWalker.h.
using fhicl::detail::PrettifierPrefixAnnotated::name_t = std::string |
Definition at line 148 of file PrettifierPrefixAnnotated.h.
Implements fhicl::ParameterSetWalker.
Definition at line 65 of file PrettifierPrefixAnnotated.cc.
References buffer_, indent_, info_, fhicl::detail::nl(), print_full_key_(), fhicl::detail::print_prefix_annotated_info(), fhicl::detail::atom::printed_prefix(), fhicl::detail::printed_suffix(), sequence_sizes_, and fhicl::detail::atom::value().
Referenced by result().
|
overrideprivatevirtual |
Reimplemented from fhicl::ParameterSetWalker.
Definition at line 13 of file PrettifierPrefixAnnotated.cc.
References fhicl::ParameterSet::get_src_info(), and info_.
Referenced by result().
|
inlineinherited |
Definition at line 103 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::after_action().
Referenced by fhicl::ParameterSet::walk().
Definition at line 92 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::atom().
Referenced by fhicl::ParameterSet::walk().
|
inlineinherited |
Definition at line 98 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::before_action().
Referenced by fhicl::ParameterSet::walk().
|
inlineinherited |
Definition at line 87 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::enter_sequence().
Referenced by fhicl::ParameterSet::walk().
Definition at line 82 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::enter_table().
Referenced by fhicl::ParameterSet::walk().
|
inlineinherited |
Definition at line 114 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::atom(), fhicl::ParameterSetWalker::enter_sequence(), fhicl::ParameterSetWalker::enter_table(), and fhicl::ParameterSetWalker::exit_sequence().
Referenced by fhicl::ParameterSet::walk().
Definition at line 109 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::exit_table().
Referenced by fhicl::ParameterSet::walk().
|
overrideprivatevirtual |
Implements fhicl::ParameterSetWalker.
Definition at line 43 of file PrettifierPrefixAnnotated.cc.
References buffer_, indent_, info_, fhicl::detail::nl(), print_full_key_(), fhicl::detail::print_prefix_annotated_info(), fhicl::detail::sequence::printed_prefix(), fhicl::detail::Indentation::push(), and push_size_().
Referenced by result().
|
overrideprivatevirtual |
Implements fhicl::ParameterSetWalker.
Definition at line 23 of file PrettifierPrefixAnnotated.cc.
References buffer_, indent_, info_, name_stack_, fhicl::detail::nl(), print_full_key_(), fhicl::detail::print_prefix_annotated_info(), fhicl::detail::table::printed_prefix(), and fhicl::detail::Indentation::push().
Referenced by result().
|
overrideprivatevirtual |
Reimplemented from fhicl::ParameterSetWalker.
Definition at line 53 of file PrettifierPrefixAnnotated.cc.
References buffer_, fhicl::detail::sequence::closing_brace(), indent_, fhicl::detail::nl(), fhicl::detail::Indentation::pop(), pop_size_(), fhicl::detail::printed_suffix(), and sequence_sizes_.
Referenced by result().
|
overrideprivatevirtual |
Reimplemented from fhicl::ParameterSetWalker.
Definition at line 32 of file PrettifierPrefixAnnotated.cc.
References buffer_, fhicl::detail::table::closing_brace(), indent_, name_stack_, fhicl::detail::nl(), fhicl::detail::Indentation::pop(), fhicl::detail::printed_suffix(), and sequence_sizes_.
Referenced by result().
|
private |
Definition at line 82 of file PrettifierPrefixAnnotated.cc.
References curr_size_, and sequence_sizes_.
Referenced by exit_sequence(), and result().
|
private |
Definition at line 89 of file PrettifierPrefixAnnotated.cc.
References name_stack_.
Referenced by atom(), enter_sequence(), enter_table(), and result().
|
private |
Definition at line 75 of file PrettifierPrefixAnnotated.cc.
References curr_size_, sequence_sizes_, and util::size().
Referenced by enter_sequence(), and result().
|
inline |
Definition at line 151 of file PrettifierPrefixAnnotated.h.
References atom(), before_action(), buffer_, enter_sequence(), enter_table(), exit_sequence(), exit_table(), pop_size_(), print_full_key_(), and push_size_().
Referenced by fhicl::ParameterSet::to_indented_string().
|
private |
Definition at line 173 of file PrettifierPrefixAnnotated.h.
Referenced by atom(), enter_sequence(), enter_table(), exit_sequence(), exit_table(), and result().
|
private |
Definition at line 177 of file PrettifierPrefixAnnotated.h.
Referenced by pop_size_(), and push_size_().
|
private |
Definition at line 174 of file PrettifierPrefixAnnotated.h.
Referenced by atom(), enter_sequence(), enter_table(), exit_sequence(), and exit_table().
|
private |
Definition at line 175 of file PrettifierPrefixAnnotated.h.
Referenced by atom(), before_action(), enter_sequence(), and enter_table().
|
private |
Definition at line 178 of file PrettifierPrefixAnnotated.h.
Referenced by enter_table(), exit_table(), and print_full_key_().
|
private |
Definition at line 176 of file PrettifierPrefixAnnotated.h.
Referenced by atom(), exit_sequence(), exit_table(), pop_size_(), and push_size_().