25 static void link(
const std::shared_ptr<cell>& c1,
const std::shared_ptr<cell>& c2,
bool bidi =
true) noexcept;
31 static
void unlink(const std::shared_ptr<
cell>& c1, const std::shared_ptr<
cell>& c2,
bool bidi = true) noexcept;
42 static bool dfs(grid_operations &ops, randomizer &rng,
const cell_filter &open = {});
43 static bool prims(grid_operations &ops, randomizer &rng,
const cell_filter &open = {});
Cell class with links to other cells.
Definition cell.h:18
Interface for grid navigation and manipulation operations.
Definition grid_operations.h:22
Provides link operations and maze algorithms.
Definition lab.h:19
static void link(const std::shared_ptr< cell > &c1, const std::shared_ptr< cell > &c2, bool bidi=true) noexcept
Links two cell objects, optionally in both directions.
static void unlink(const std::shared_ptr< cell > &c1, const std::shared_ptr< cell > &c2, bool bidi=true) noexcept
Unlinks two cell objects, optionally in both directions.
std::function< bool(int)> cell_filter
Accepts or rejects a cell by its grid index.
Definition lab.h:34
static bool binary_tree(grid_operations &ops, randomizer &rng, const cell_filter &open={})
Maze algorithms sized from ops.get_dimensions().
Provides random-number generating capabilities.
Definition randomizer.h:16