53 : callbacks { std::move(callbacksToUse) }
81 void abort() noexcept { exitFlag.store(
true, std::memory_order::release); }
88 void reset_abort() noexcept { exitFlag.store(
false, std::memory_order::release); }
113 continuationHistory->clear();
129 transTable.resize(sizeMB);
134 -> std::optional<TTData>
136 return transTable.find(pos);
140 [[nodiscard]]
auto in_progress() const noexcept ->
bool {
return activeFlag.load(std::memory_order::acquire); }
151 void set_pondering(
const bool isPonderMode)
noexcept { pondering.store(isPonderMode, std::memory_order::release); }
156 void ponder_hit() noexcept { pondering.store(
false, std::memory_order::release); }
168 options.movesToSearch.clear();
198 callbacks = std::move(callbacksToUse);
222 std::unique_ptr<HistoryTable> history { std::make_unique<HistoryTable>() };
225 std::unique_ptr<ContinuationHistory> continuationHistory { std::make_unique<ContinuationHistory>() };
void clear_transposition_table()
Context(Callbacks &&callbacksToUse)
void ponder_hit() noexcept
void set_options(const chess::uci::GoCommandOptions &opts)
Context(const Context &)=delete
auto probe_transposition_table(const Position &pos) const -> std::optional< TTData >
void set_callbacks(Callbacks &&callbacksToUse)
Context & operator=(Context &&)=delete
auto in_progress() const noexcept -> bool
Context(Context &&)=delete
void reset_abort() noexcept
auto get_position() const noexcept -> const Position &
void resize_transposition_table(const size_t sizeMB)
auto get_options() const noexcept -> const Options &
auto get_continuation_history() const noexcept -> const ContinuationHistory &
void set_position(const Position &pos)
void set_pondering(const bool isPonderMode) noexcept
auto get_history_table() const noexcept -> const HistoryTable &
Context & operator=(const Context &)=delete
void set_options(const Options &opts)