|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Functor implementing Conway's Game of Life canonical rule (B3/S23). More...
#include <tpl_ca_rule.H>
Public Member Functions | |
| template<typename State > | |
| constexpr State | operator() (const State ¤t, const std::size_t alive) const noexcept |
| Evaluate the B3/S23 transition. | |
Functor implementing Conway's Game of Life canonical rule (B3/S23).
Definition at line 494 of file tpl_ca_rule.H.
|
inlineconstexprnoexcept |
Evaluate the B3/S23 transition.
| State | cell state type. |
| [in] | current | current centre-cell state. |
| [in] | alive | number of alive neighbours. |
1 when the cell is alive in the next frame, else 0. | This | function does not throw. |
Definition at line 505 of file tpl_ca_rule.H.
References Aleph::and, and Aleph::blossom_maximum_cardinality_matching().