The data and methods to track ergodic moves.
More...
#include <Move_tracker.hpp>
|
| auto | four_four_moves () -> auto & |
| | Write access to (4,4) moves.
|
| auto | four_four_moves () const |
| | Read access to (4,4) moves.
|
| auto | moves_view () const noexcept |
| | Get a view of the moves.
|
| auto | operator+= (MoveTracker const &rhs) -> MoveTracker & |
| | The += operator for MoveTracker.
|
| auto | operator[] (gsl::index const index) -> auto & |
| | The [] operator for MoveTracker.
|
| auto | operator[] (gsl::index const index) const -> auto const & |
| | The [] operator for a read-only MoveTracker.
|
| auto | operator[] (MoveType const move) -> auto & |
| | The [] operator for MoveTracker.
|
| auto | operator[] (MoveType const move) const -> auto const & |
| | The [] operator for a read-only MoveTracker.
|
| void | reset () |
| | Reset all moves counts to zero.
|
| auto | six_two_moves () -> auto & |
| | Write access to (6,2) moves.
|
| auto | six_two_moves () const |
| | Read access to (6,2) moves.
|
| auto | size () const noexcept |
| | Container size.
|
| auto | three_two_moves () -> auto & |
| | Write access to (3,2) moves.
|
| auto | three_two_moves () const |
| | Read access to (3,2) moves.
|
| auto | total () const noexcept |
| | Total moves.
|
| auto | two_six_moves () -> auto & |
| | Write access to (2,6) moves.
|
| auto | two_six_moves () const |
| | Read access to (2,6) moves.
|
| auto | two_three_moves () -> auto & |
| | Write access to (2,3) moves.
|
| auto | two_three_moves () const |
| | Read access to (2,3) moves.
|
The data and methods to track ergodic moves.
Definition at line 108 of file Move_tracker.hpp.
◆ four_four_moves() [1/2]
| auto cdt::move_tracker::MoveTracker::four_four_moves |
( |
| ) |
-> auto & |
|
inlinenodiscard |
Write access to (4,4) moves.
- Returns
- Reference to number of (4,4) moves
Definition at line 236 of file Move_tracker.hpp.
◆ four_four_moves() [2/2]
| auto cdt::move_tracker::MoveTracker::four_four_moves |
( |
| ) |
const |
|
inlinenodiscard |
Read access to (4,4) moves.
- Returns
- Value of number of (4,4) moves
Definition at line 242 of file Move_tracker.hpp.
◆ moves_view()
| auto cdt::move_tracker::MoveTracker::moves_view |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Get a view of the moves.
- Returns
- Read-only container of moves
Definition at line 119 of file Move_tracker.hpp.
◆ operator+=()
The += operator for MoveTracker.
- Parameters
-
- Returns
- The sum of the individual elements of the MoveTrackers
Definition at line 158 of file Move_tracker.hpp.
◆ operator[]() [1/4]
| auto cdt::move_tracker::MoveTracker::operator[] |
( |
gsl::index const | index | ) |
-> auto & |
|
inlinenodiscard |
The [] operator for MoveTracker.
- Parameters
-
| index | The index of the element to be accessed |
- Returns
- The number of moves at the index
Definition at line 126 of file Move_tracker.hpp.
◆ operator[]() [2/4]
| auto cdt::move_tracker::MoveTracker::operator[] |
( |
gsl::index const | index | ) |
const -> auto const & |
|
inlinenodiscard |
The [] operator for a read-only MoveTracker.
- Parameters
-
| index | The index of the element to be accessed |
- Returns
- The number of moves at the index
Definition at line 134 of file Move_tracker.hpp.
◆ operator[]() [3/4]
| auto cdt::move_tracker::MoveTracker::operator[] |
( |
MoveType const | move | ) |
-> auto & |
|
inlinenodiscard |
The [] operator for MoveTracker.
- Parameters
-
| move | The move type to be accessed |
- Returns
- The number of moves of that type
Definition at line 142 of file Move_tracker.hpp.
◆ operator[]() [4/4]
| auto cdt::move_tracker::MoveTracker::operator[] |
( |
MoveType const | move | ) |
const -> auto const & |
|
inlinenodiscard |
The [] operator for a read-only MoveTracker.
- Parameters
-
| move | The move type to be accessed |
- Returns
- The number of moves of that type
Definition at line 150 of file Move_tracker.hpp.
◆ reset()
| void cdt::move_tracker::MoveTracker::reset |
( |
| ) |
|
|
inline |
◆ six_two_moves() [1/2]
| auto cdt::move_tracker::MoveTracker::six_two_moves |
( |
| ) |
-> auto & |
|
inlinenodiscard |
Write access to (6,2) moves.
- Returns
- Reference to number of (6,2) moves
Definition at line 224 of file Move_tracker.hpp.
◆ six_two_moves() [2/2]
| auto cdt::move_tracker::MoveTracker::six_two_moves |
( |
| ) |
const |
|
inlinenodiscard |
Read access to (6,2) moves.
- Returns
- Value of number of (6,2) moves
Definition at line 230 of file Move_tracker.hpp.
◆ size()
| auto cdt::move_tracker::MoveTracker::size |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Container size.
- Returns
- The size of the container of moves
Definition at line 180 of file Move_tracker.hpp.
◆ three_two_moves() [1/2]
| auto cdt::move_tracker::MoveTracker::three_two_moves |
( |
| ) |
-> auto & |
|
inlinenodiscard |
Write access to (3,2) moves.
- Returns
- Reference to number of (3,2) moves
Definition at line 200 of file Move_tracker.hpp.
◆ three_two_moves() [2/2]
| auto cdt::move_tracker::MoveTracker::three_two_moves |
( |
| ) |
const |
|
inlinenodiscard |
Read access to (3,2) moves.
- Returns
- Value of number of (3,2) moves
Definition at line 206 of file Move_tracker.hpp.
◆ total()
| auto cdt::move_tracker::MoveTracker::total |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ two_six_moves() [1/2]
| auto cdt::move_tracker::MoveTracker::two_six_moves |
( |
| ) |
-> auto & |
|
inlinenodiscard |
Write access to (2,6) moves.
- Returns
- Reference to number of (2,6) moves
Definition at line 212 of file Move_tracker.hpp.
◆ two_six_moves() [2/2]
| auto cdt::move_tracker::MoveTracker::two_six_moves |
( |
| ) |
const |
|
inlinenodiscard |
Read access to (2,6) moves.
- Returns
- Value of number of (2,6) moves
Definition at line 218 of file Move_tracker.hpp.
◆ two_three_moves() [1/2]
| auto cdt::move_tracker::MoveTracker::two_three_moves |
( |
| ) |
-> auto & |
|
inlinenodiscard |
Write access to (2,3) moves.
- Returns
- Reference to number of (2,3) moves
Definition at line 188 of file Move_tracker.hpp.
◆ two_three_moves() [2/2]
| auto cdt::move_tracker::MoveTracker::two_three_moves |
( |
| ) |
const |
|
inlinenodiscard |
Read access to (2,3) moves.
- Returns
- Value of number of (2,3) moves
Definition at line 194 of file Move_tracker.hpp.
The documentation for this class was generated from the following file: