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

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

#include <zobrist_for_concepts.hpp>

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

Public Member Functions

 TranspositionTableEntryForConcepts (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::TranspositionTableEntryForConcepts< KeyType, NumConfKeys >

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

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

Definition at line 121 of file zobrist_for_concepts.hpp.

Constructor & Destructor Documentation

◆ TranspositionTableEntryForConcepts()

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

Definition at line 128 of file zobrist_for_concepts.hpp.

Member Function Documentation

◆ confirmation_keys()

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

Definition at line 139 of file zobrist_for_concepts.hpp.

◆ ConfirmationKeysMatchExpected()

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

Definition at line 147 of file zobrist_for_concepts.hpp.

◆ last_access_index()

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

Definition at line 141 of file zobrist_for_concepts.hpp.

◆ minimax_calc_result()

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

Definition at line 137 of file zobrist_for_concepts.hpp.

◆ remaining_search_depth()

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

Definition at line 156 of file zobrist_for_concepts.hpp.

◆ set_last_access_index()

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

Definition at line 143 of file zobrist_for_concepts.hpp.

Member Data Documentation

◆ confirmation_keys_

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

Definition at line 124 of file zobrist_for_concepts.hpp.

◆ last_access_index_

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

Definition at line 125 of file zobrist_for_concepts.hpp.

◆ minimax_calc_result_

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

Definition at line 123 of file zobrist_for_concepts.hpp.


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