MCPcopy Create free account
hub / github.com/dds-bridge/dds / reset_memory

Method reset_memory

library/src/trans_table/trans_table_s.cpp:343–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341
342
343auto TransTableS::reset_memory(
344 [[maybe_unused]] const ResetReason reason) -> void
345{
346 wipe();
347
348 init_tt();
349
350 for (int k = 1; k <= 13; k++)
351 {
352 for (int h = 0; h < DDS_HANDS; h++)
353 {
354 rootnp_[k][h] = &(pos_search_[k][h][0]);
355 pos_search_[k][h][0].suit_lengths_ = 0;
356 pos_search_[k][h][0].pos_search_point_ = nullptr;
357 pos_search_[k][h][0].left_ = nullptr;
358 pos_search_[k][h][0].right_ = nullptr;
359
360 len_set_ind_[k][h] = 1;
361 }
362 }
363
364#if defined(DDS_TT_STATS)
365 stats_resets_.no_of_resets_++;
366 stats_resets_.aggr_resets_[static_cast<int>(reason)]++;
367#endif
368
369}
370
371auto TransTableS::return_all_memory() -> void
372{

Callers 2

solve_board_internalFunction · 0.45
reset_for_solveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected