Compact representation of Move
More...
#include <chessboard.h>
Compact representation of Move
◆ CompactMove() [1/4]
| hoover_chess_utils::pgn_reader::CompactMove::CompactMove |
( |
| ) |
|
|
default |
Default constructor (null move)
◆ CompactMove() [2/4]
| hoover_chess_utils::pgn_reader::CompactMove::CompactMove |
( |
const CompactMove & |
| ) |
|
|
default |
Default copy constructor.
◆ CompactMove() [3/4]
| hoover_chess_utils::pgn_reader::CompactMove::CompactMove |
( |
CompactMove && |
| ) |
|
|
default |
Default move constructor.
◆ ~CompactMove()
| hoover_chess_utils::pgn_reader::CompactMove::~CompactMove |
( |
| ) |
|
|
default |
◆ CompactMove() [4/4]
| constexpr hoover_chess_utils::pgn_reader::CompactMove::CompactMove |
( |
const Move & |
m | ) |
|
|
inlineconstexprnoexcept |
Constructs a compact move from Move
◆ getEncodedValue()
| constexpr std::uint16_t hoover_chess_utils::pgn_reader::CompactMove::getEncodedValue |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns raw encoded value. Usually only used in debugging.
- Returns
- Encoded value of move
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ m_encoded
| std::uint16_t hoover_chess_utils::pgn_reader::CompactMove::m_encoded { } |
|
private |
Encoded move.
Bitfield
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Destination square | Move type and promotion | Source square |
The documentation for this class was generated from the following file: