|
BenBot 1.7.5
A chess engine
|
#include <libbenbot/data-structures/PawnTable.hpp>
Public Member Functions | |
| void | clear () noexcept |
| auto | probe (const std::uint64_t key) noexcept -> PawnEntry & |
Static Public Attributes | |
| static constexpr auto | NumEntries { std::size_t { 1 } << 14uz } |
A fixed-size cache of pawn structure evaluations, indexed by the position's pawn hash. New entries always replace old ones. Each search thread owns its own table, so no locking is needed.
Definition at line 54 of file PawnTable.hpp.
|
inlinenoexcept |
Clears all entries in the table.
Definition at line 70 of file PawnTable.hpp.
|
inlinenodiscardnoexcept |
Returns the entry slot for the given pawn hash. The caller must check the entry's key to see if it's a hit.
Definition at line 64 of file PawnTable.hpp.
|
staticconstexpr |
The number of entries in the table. This must be a power of 2.
Definition at line 57 of file PawnTable.hpp.