All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
osl::game_playing::ThreadForEachMove Class Reference

相手の手の予測1つにつき1thread More...

#include <threadForEachMove.h>

Inheritance diagram for osl::game_playing::ThreadForEachMove:
Inheritance graph
[legend]
Collaboration diagram for osl::game_playing::ThreadForEachMove:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

相手の手の予測1つにつき1thread

Definition at line 19 of file threadForEachMove.h.


Constructor & Destructor Documentation

osl::game_playing::ThreadForEachMove::ThreadForEachMove ( int  max_threads = 1) [explicit]

Member Function Documentation

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]
const MoveWithComment osl::game_playing::ThreadForEachMove::waitResult ( Move  last_move,
int  wait_for,
SearchPlayer main_player,
int   
)

Member Data Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines