Maze Builder Docs 8.2.1
Loading...
Searching...
No Matches
mazes::lab Class Reference

Provides link operations. More...

Static Public Member Functions

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.
 

Detailed Description

Provides link operations.

"labyrinth"

This class provides methods to link and unlink cells in a maze.

Member Function Documentation

◆ link()

static void mazes::lab::link ( const std::shared_ptr< cell > & c1,
const std::shared_ptr< cell > & c2,
bool bidi = true )
staticnoexcept

Links two cell objects, optionally in both directions.

Parameters
c1A shared pointer to the first cell object.
c2A shared pointer to the second cell object.
bidiA boolean flag indicating if the link should be bidirectional. Defaults to true.

◆ unlink()

static void mazes::lab::unlink ( const std::shared_ptr< cell > & c1,
const std::shared_ptr< cell > & c2,
bool bidi = true )
staticnoexcept

Unlinks two cell objects, optionally in both directions.

Parameters
c1A shared pointer to the first cell object.
c2A shared pointer to the second cell object.
bidiA boolean flag indicating if the unlink should be bidirectional. Defaults to true.

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