84 std::string result =
"{backtracking={";
109 result +=
"smart_prune=";
113 result +=
"}, overload_and_remove={";
153struct std::formatter<
porytiles::PackingStrategyParams> {
154 constexpr auto parse(std::format_parse_context &ctx)
std::ostream & operator<<(std::ostream &os, const PrimaryPairingMode m)
Stream insertion operator for PrimaryPairingMode.
std::string to_string(const PrimaryPairingMode m)
Converts a PrimaryPairingMode to its canonical string representation.
Per-strategy parameters for the BacktrackingStrategy packing algorithm.
ConfigPODField< std::size_t > best_branches
ConfigPODField< std::size_t > node_cutoff
ConfigPODField< bool > smart_prune
ConfigPODField< SearchAlgorithm > search_algorithm
bool has_any() const
Checks whether any parameter has been explicitly set.
A lightweight wrapper for per-field configuration values with source metadata.
bool has_value() const
Checks whether this field has a value set.
Per-strategy parameters for the OverloadAndRemoveStrategy packing algorithm.
ConfigPODField< ShuffleStrategy > shuffle_strategy
bool has_any() const
Checks whether any parameter has been explicitly set.
ConfigPODField< std::uint64_t > seed
ConfigPODField< std::size_t > max_attempts
Container for per-strategy packing parameters.
BacktrackingParams backtracking
OverloadAndRemoveParams overload_and_remove