Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
boardstate::TranspositionTableEntry< KeyType, NumConfKeys > Class Template Reference

Data structure to hold calculation results that get entered into a boardstate::TranspositionTable. More...

#include <zobrist.hpp>

Collaboration diagram for boardstate::TranspositionTableEntry< KeyType, NumConfKeys >:
Collaboration graph

Public Member Functions

 TranspositionTableEntry (moveselection::MinimaxCalcResult minimax_calc_result, std::array< KeyType, NumConfKeys > confirmation_keys, MoveCountType last_access_index)
 
moveselection::MinimaxCalcResult minimax_calc_result ()
 
std::array< KeyType, NumConfKeys > confirmation_keys ()
 
MoveCountType last_access_index ()
 
void set_last_access_index (MoveCountType last_access_index)
 
bool ConfirmationKeysMatchExpected (std::array< KeyType, NumConfKeys > expected_keys)
 
DepthType remaining_search_depth ()
 

Private Attributes

moveselection::MinimaxCalcResult minimax_calc_result_
 
std::array< KeyType, NumConfKeys > confirmation_keys_
 
MoveCountType last_access_index_
 

Detailed Description

template<typename KeyType, size_t NumConfKeys>
class boardstate::TranspositionTableEntry< KeyType, NumConfKeys >

Data structure to hold calculation results that get entered into a boardstate::TranspositionTable.

When NumConfKeys > 0, also holds board state values calculated by objects in a boardstate::ZobristComponent.confirmation_calculators_.

Definition at line 234 of file zobrist.hpp.

Constructor & Destructor Documentation

◆ TranspositionTableEntry()

template<typename KeyType , size_t NumConfKeys>
boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::TranspositionTableEntry ( moveselection::MinimaxCalcResult  minimax_calc_result,
std::array< KeyType, NumConfKeys >  confirmation_keys,
MoveCountType  last_access_index 
)
inline

Definition at line 241 of file zobrist.hpp.

Member Function Documentation

◆ confirmation_keys()

template<typename KeyType , size_t NumConfKeys>
std::array< KeyType, NumConfKeys > boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::confirmation_keys ( )
inline

Definition at line 252 of file zobrist.hpp.

◆ ConfirmationKeysMatchExpected()

template<typename KeyType , size_t NumConfKeys>
bool boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::ConfirmationKeysMatchExpected ( std::array< KeyType, NumConfKeys >  expected_keys)
inline

Definition at line 260 of file zobrist.hpp.

◆ last_access_index()

template<typename KeyType , size_t NumConfKeys>
MoveCountType boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::last_access_index ( )
inline

Definition at line 254 of file zobrist.hpp.

◆ minimax_calc_result()

template<typename KeyType , size_t NumConfKeys>
moveselection::MinimaxCalcResult boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::minimax_calc_result ( )
inline

Definition at line 250 of file zobrist.hpp.

◆ remaining_search_depth()

template<typename KeyType , size_t NumConfKeys>
DepthType boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::remaining_search_depth ( )
inline

Definition at line 269 of file zobrist.hpp.

◆ set_last_access_index()

template<typename KeyType , size_t NumConfKeys>
void boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::set_last_access_index ( MoveCountType  last_access_index)
inline

Definition at line 256 of file zobrist.hpp.

Member Data Documentation

◆ confirmation_keys_

template<typename KeyType , size_t NumConfKeys>
std::array<KeyType, NumConfKeys> boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::confirmation_keys_
private

Definition at line 237 of file zobrist.hpp.

◆ last_access_index_

template<typename KeyType , size_t NumConfKeys>
MoveCountType boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::last_access_index_
private

Definition at line 238 of file zobrist.hpp.

◆ minimax_calc_result_

template<typename KeyType , size_t NumConfKeys>
moveselection::MinimaxCalcResult boardstate::TranspositionTableEntry< KeyType, NumConfKeys >::minimax_calc_result_
private

Definition at line 236 of file zobrist.hpp.


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