Porytiles
Loading...
Searching...
No Matches
porytiles::BacktrackingParams Struct Reference

Per-strategy parameters for the BacktrackingStrategy packing algorithm. More...

#include <packing_strategy_params.hpp>

Collaboration diagram for porytiles::BacktrackingParams:
[legend]

Public Member Functions

bool has_any () const
 Checks whether any parameter has been explicitly set.
 

Public Attributes

ConfigPODField< SearchAlgorithmsearch_algorithm
 
ConfigPODField< std::size_t > node_cutoff
 
ConfigPODField< std::size_t > best_branches
 
ConfigPODField< bool > smart_prune
 

Detailed Description

Per-strategy parameters for the BacktrackingStrategy packing algorithm.

When any field has a value, the strategy runs in single-config mode with the provided parameters (unset fields fall back to their defaults). When no fields have values, the strategy uses its built-in preset matrix mode.

Definition at line 22 of file packing_strategy_params.hpp.

Member Function Documentation

◆ has_any()

bool porytiles::BacktrackingParams::has_any ( ) const
inline

Checks whether any parameter has been explicitly set.

Returns
true if at least one field has a value

Definition at line 33 of file packing_strategy_params.hpp.

Member Data Documentation

◆ best_branches

ConfigPODField<std::size_t> porytiles::BacktrackingParams::best_branches

Definition at line 25 of file packing_strategy_params.hpp.

◆ node_cutoff

ConfigPODField<std::size_t> porytiles::BacktrackingParams::node_cutoff

Definition at line 24 of file packing_strategy_params.hpp.

◆ search_algorithm

ConfigPODField<SearchAlgorithm> porytiles::BacktrackingParams::search_algorithm

Definition at line 23 of file packing_strategy_params.hpp.

◆ smart_prune

ConfigPODField<bool> porytiles::BacktrackingParams::smart_prune

Definition at line 26 of file packing_strategy_params.hpp.


The documentation for this struct was generated from the following file: