17 std::regex
const reNewLine{
"\n"};
22 auto pos = k.find_last_of(
"]");
23 return pos != std::string::npos &&
pos == k.size() - 1;
40 if (!mn.is_seq_elem) {
41 os << mn.indent << mn.name <<
": ";
49 suffix(std::unordered_set<std::string>& keysWithCommas_,
50 std::unordered_set<std::string>& keysWithEllipses_,
56 keysWithCommas_.erase(key);
60 keysWithEllipses_.erase(key);
61 result.append(
"\n").append(indent).append(
"...");
67 non_whitespace(
std::string const&
s, std::size_t
const sz)
87 for (std::size_t i{}; i !=
n; ++i)
98 bool const showParents,
225 for (std::size_t i{}; i != s.
size() - 1; ++i)
230 keysWithCommas_.emplace(s.
key() +
"[0]");
231 keysWithEllipses_.emplace(s.
key() +
"[0]");
bool is_conditional() const
bool suppressFormat(ParameterBase const &p)
bool empty() const noexcept
bool is_sequence_element(std::string const &key)
std::string const & name() const
void enter_table(TableBase const &) override
std::size_t size() const noexcept
void exit_sequence(SequenceBase const &) override
PrintAllowedConfiguration(std::ostream &os, bool const showParents=false, std::string const &prefix=std::string(3, ' '), bool const stlf=false)
void after_action(ParameterBase const &) override
void atom(AtomBase const &) override
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::string trim_right_copy(std::string source, std::string const &t=" ")
void maybeReleaseTopLevelParameter(ParameterBase const &p)
void modify_top(std::string const &s)
bool search_all(FwdCont const &, Datum const &)
void exit_table(TableBase const &) override
bool before_action(ParameterBase const &) override
std::string stringified_value() const
par_type parameter_type() const
bool showParentsForFirstParam_
std::stack< MaybeDisplayParent > mps_
void enter_sequence(SequenceBase const &) override
std::string const & key() const
void delegated_parameter(DelegateBase const &) override
bool suppressTopLevelFormatting_
void line(double t, double *p, double &x, double &y, double &z)
std::string const & comment() const
void cacheTopLevelParameter(ParameterBase const &p)
std::ostream & operator<<(std::ostream &, ParameterSetID const &)
std::string to_string(ModuleType const mt)