Maze Builder Docs 6.7.5
Loading...
Searching...
No Matches
mazes::algo_interface Class Referenceabstract

Interface for runnable algorithms. More...

#include <algo_interface.h>

Inheritance diagram for mazes::algo_interface:
[legend]

Public Member Functions

virtual bool run (std::unique_ptr< grid_interface > const &g, randomizer &rng) const noexcept=0
 Interface method that algorithms must implement.
 

Detailed Description

Interface for runnable algorithms.

Uses the strategy design pattern

Member Function Documentation

◆ run()

virtual bool mazes::algo_interface::run ( std::unique_ptr< grid_interface > const & g,
randomizer & rng ) const
pure virtualnoexcept

Interface method that algorithms must implement.

Parameters
g
rng
Returns

Implemented in mazes::binary_tree, mazes::dfs, mazes::objectify, mazes::pixels, mazes::sidewinder, and mazes::stringify.


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