相手の手の予測1つにつき1thread More...
#include <threadForEachMove.h>
Public Member Functions | |
ThreadForEachMove (int max_threads=1) | |
~ThreadForEachMove () | |
void | setMaxThreads (int new_max_threads) |
void | startSpeculative (const boost::shared_ptr< GameState > state, const SearchPlayer &main_player) |
void | stopOtherThan (Move) |
void | stopAll () |
const MoveWithComment | waitResult (Move last_move, int wait_for, SearchPlayer &main_player, int) |
void | selectBestMoveCleanUp () |
Private Attributes | |
boost::scoped_ptr < SpeculativeThread > | speculative_thread0 |
boost::scoped_ptr < SpeculativeThread > | speculative_thread1 |
int | max_threads |
相手の手の予測1つにつき1thread
Definition at line 19 of file threadForEachMove.h.
osl::game_playing::ThreadForEachMove::ThreadForEachMove | ( | int | max_threads = 1 | ) | [explicit] |
void osl::game_playing::ThreadForEachMove::selectBestMoveCleanUp | ( | ) | [virtual] |
Implements osl::game_playing::SpeculativeModel.
void osl::game_playing::ThreadForEachMove::setMaxThreads | ( | int | new_max_threads | ) | [inline, virtual] |
Reimplemented from osl::game_playing::SpeculativeModel.
Definition at line 29 of file threadForEachMove.h.
References max_threads.
void osl::game_playing::ThreadForEachMove::startSpeculative | ( | const boost::shared_ptr< GameState > | state, |
const SearchPlayer & | main_player | ||
) | [virtual] |
Implements osl::game_playing::SpeculativeModel.
void osl::game_playing::ThreadForEachMove::stopAll | ( | ) | [virtual] |
Implements osl::game_playing::SpeculativeModel.
void osl::game_playing::ThreadForEachMove::stopOtherThan | ( | Move | ) | [virtual] |
Implements osl::game_playing::SpeculativeModel.
const MoveWithComment osl::game_playing::ThreadForEachMove::waitResult | ( | Move | last_move, |
int | wait_for, | ||
SearchPlayer & | main_player, | ||
int | |||
) |
int osl::game_playing::ThreadForEachMove::max_threads [private] |
Definition at line 24 of file threadForEachMove.h.
Referenced by setMaxThreads().
boost::scoped_ptr<SpeculativeThread> osl::game_playing::ThreadForEachMove::speculative_thread0 [private] |
Definition at line 21 of file threadForEachMove.h.
boost::scoped_ptr<SpeculativeThread> osl::game_playing::ThreadForEachMove::speculative_thread1 [private] |
Definition at line 23 of file threadForEachMove.h.