Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
moveselection::SearchSummary Class Reference

Stores data collected during a single call to moveselection::MinimaxMoveEvaluator.ImplementSelectMove. More...

#include <evaluator_data_structs.hpp>

Collaboration diagram for moveselection::SearchSummary:
Collaboration graph

Public Member Functions

 SearchSummary (DepthType max_search_depth, size_t tr_table_size_initial)
 
void RecordNodeInfo (MinimaxResultType result_type, DepthType search_depth, const EqualScoreMoves &equal_score_moves)
 
void UpdateTranspositionTableHits (MinimaxResultType result_type, DepthType search_depth)
 
void RecordTrTableHit (TranspositionTableSearchResult &tr_table_search_result, DepthType remaining_search_depth)
 
size_t num_nodes ()
 
std::chrono::duration< double, std::nano > time ()
 
void set_time (std::chrono::duration< double, std::nano > search_time)
 
EqualScoreMoves equal_score_moves ()
 
void set_equal_score_moves (EqualScoreMoves equal_score_moves)
 
Move selected_move ()
 
void SetSelectedMove (Move selected_move)
 
ResultDepthCountsData_t GetResultDepthCounts ()
 
ResultDepthCountsData_t GetTranspositionTableHits ()
 
size_t tr_table_size_initial ()
 
size_t tr_table_size_final ()
 
void set_tr_table_size_final (size_t tr_table_size_final)
 
void set_returned_illegal_move (bool status)
 
bool returned_illegal_move ()
 
size_t num_collisions ()
 

Private Attributes

size_t num_nodes_
 
std::chrono::duration< double, std::nano > time_
 
ResultDepthCounts result_depth_counts_
 
ResultDepthCounts transposition_table_hits_
 
EqualScoreMoves equal_score_moves_
 
Move selected_move_
 
bool returned_illegal_move_
 
size_t num_collisions_
 
size_t tr_table_size_initial_
 
size_t tr_table_size_final_
 

Detailed Description

Stores data collected during a single call to moveselection::MinimaxMoveEvaluator.ImplementSelectMove.

Includes total number of nodes explored, a moveseelection::ResultDepthCounts object for moveselection::MinimaxResultType::kTrTableHit search results, and another moveseelection::ResultDepthCounts for all other search result types.

Definition at line 159 of file evaluator_data_structs.hpp.

Constructor & Destructor Documentation

◆ SearchSummary()

moveselection::SearchSummary::SearchSummary ( DepthType  max_search_depth,
size_t  tr_table_size_initial 
)
inline

Definition at line 161 of file evaluator_data_structs.hpp.

Member Function Documentation

◆ equal_score_moves()

EqualScoreMoves moveselection::SearchSummary::equal_score_moves ( )
inline

Definition at line 208 of file evaluator_data_structs.hpp.

◆ GetResultDepthCounts()

ResultDepthCountsData_t moveselection::SearchSummary::GetResultDepthCounts ( )
inline

Definition at line 215 of file evaluator_data_structs.hpp.

◆ GetTranspositionTableHits()

ResultDepthCountsData_t moveselection::SearchSummary::GetTranspositionTableHits ( )
inline

Definition at line 216 of file evaluator_data_structs.hpp.

◆ num_collisions()

size_t moveselection::SearchSummary::num_collisions ( )
inline

Definition at line 226 of file evaluator_data_structs.hpp.

◆ num_nodes()

size_t moveselection::SearchSummary::num_nodes ( )
inline

Definition at line 202 of file evaluator_data_structs.hpp.

◆ RecordNodeInfo()

void moveselection::SearchSummary::RecordNodeInfo ( MinimaxResultType  result_type,
DepthType  search_depth,
const EqualScoreMoves equal_score_moves 
)
inline

Definition at line 170 of file evaluator_data_structs.hpp.

◆ RecordTrTableHit()

void moveselection::SearchSummary::RecordTrTableHit ( TranspositionTableSearchResult tr_table_search_result,
DepthType  remaining_search_depth 
)
inline

Definition at line 184 of file evaluator_data_structs.hpp.

◆ returned_illegal_move()

bool moveselection::SearchSummary::returned_illegal_move ( )
inline

Definition at line 225 of file evaluator_data_structs.hpp.

◆ selected_move()

Move moveselection::SearchSummary::selected_move ( )
inline

Definition at line 213 of file evaluator_data_structs.hpp.

◆ set_equal_score_moves()

void moveselection::SearchSummary::set_equal_score_moves ( EqualScoreMoves  equal_score_moves)
inline

Definition at line 209 of file evaluator_data_structs.hpp.

◆ set_returned_illegal_move()

void moveselection::SearchSummary::set_returned_illegal_move ( bool  status)
inline

Definition at line 224 of file evaluator_data_structs.hpp.

◆ set_time()

void moveselection::SearchSummary::set_time ( std::chrono::duration< double, std::nano >  search_time)
inline

Definition at line 205 of file evaluator_data_structs.hpp.

◆ set_tr_table_size_final()

void moveselection::SearchSummary::set_tr_table_size_final ( size_t  tr_table_size_final)
inline

Definition at line 221 of file evaluator_data_structs.hpp.

◆ SetSelectedMove()

void moveselection::SearchSummary::SetSelectedMove ( Move  selected_move)
inline

Definition at line 214 of file evaluator_data_structs.hpp.

◆ time()

std::chrono::duration< double, std::nano > moveselection::SearchSummary::time ( )
inline

Definition at line 203 of file evaluator_data_structs.hpp.

◆ tr_table_size_final()

size_t moveselection::SearchSummary::tr_table_size_final ( )
inline

Definition at line 220 of file evaluator_data_structs.hpp.

◆ tr_table_size_initial()

size_t moveselection::SearchSummary::tr_table_size_initial ( )
inline

Definition at line 219 of file evaluator_data_structs.hpp.

◆ UpdateTranspositionTableHits()

void moveselection::SearchSummary::UpdateTranspositionTableHits ( MinimaxResultType  result_type,
DepthType  search_depth 
)
inline

Definition at line 180 of file evaluator_data_structs.hpp.

Member Data Documentation

◆ equal_score_moves_

EqualScoreMoves moveselection::SearchSummary::equal_score_moves_
private

Definition at line 233 of file evaluator_data_structs.hpp.

◆ num_collisions_

size_t moveselection::SearchSummary::num_collisions_
private

Definition at line 236 of file evaluator_data_structs.hpp.

◆ num_nodes_

size_t moveselection::SearchSummary::num_nodes_
private

Definition at line 229 of file evaluator_data_structs.hpp.

◆ result_depth_counts_

ResultDepthCounts moveselection::SearchSummary::result_depth_counts_
private

Definition at line 231 of file evaluator_data_structs.hpp.

◆ returned_illegal_move_

bool moveselection::SearchSummary::returned_illegal_move_
private

Definition at line 235 of file evaluator_data_structs.hpp.

◆ selected_move_

Move moveselection::SearchSummary::selected_move_
private

Definition at line 234 of file evaluator_data_structs.hpp.

◆ time_

std::chrono::duration<double, std::nano> moveselection::SearchSummary::time_
private

Definition at line 230 of file evaluator_data_structs.hpp.

◆ tr_table_size_final_

size_t moveselection::SearchSummary::tr_table_size_final_
private

Definition at line 238 of file evaluator_data_structs.hpp.

◆ tr_table_size_initial_

size_t moveselection::SearchSummary::tr_table_size_initial_
private

Definition at line 237 of file evaluator_data_structs.hpp.

◆ transposition_table_hits_

ResultDepthCounts moveselection::SearchSummary::transposition_table_hits_
private

Definition at line 232 of file evaluator_data_structs.hpp.


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