Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

BookBuilderCommands< PLAYER > Class Template Reference

Commands for building opening books. More...

#include <BookBuilderCommands.hpp>

Inheritance diagram for BookBuilderCommands< PLAYER >:
BookCommands

List of all members.

Public Member Functions

 BookBuilderCommands (Game &game, HexEnvironment &env, boost::scoped_ptr< Book > &book, BookCheck &bookCheck, PLAYER &player)
 ~BookBuilderCommands ()
void Register (GtpEngine &engine)

Protected Attributes

Gamem_game
HexEnvironmentm_env
boost::scoped_ptr< Book > & m_book
BookCheckm_bookCheck

Private Types

typedef BookBuilderCommands
< PLAYER > 
BookBuilderType

Private Member Functions

void Register (GtpEngine &engine, const std::string &command, typename GtpCallback< BookBuilderType >::Method method)
void CmdBookPriorities (HtpCommand &cmd)
void CmdBookExpand (HtpCommand &cmd)
 Expands the current node in the current opening book.
void CmdBookRefresh (HtpCommand &cmd)
 Refreshes the current book.
void CmdBookIncreaseWidth (HtpCommand &cmd)
 Increases the width of all internal nodes that need to be increased.
void CmdParamBookBuilder (HtpCommand &cmd)

Private Attributes

BookBuilder< PLAYER > m_bookBuilder

Detailed Description

template<class PLAYER>
class BookBuilderCommands< PLAYER >

Commands for building opening books.

Definition at line 19 of file BookBuilderCommands.hpp.


Member Typedef Documentation

template<class PLAYER>
typedef BookBuilderCommands<PLAYER> BookBuilderCommands< PLAYER >::BookBuilderType [private]

Definition at line 25 of file BookBuilderCommands.hpp.


Constructor & Destructor Documentation

template<class PLAYER>
BookBuilderCommands< PLAYER >::BookBuilderCommands ( Game game,
HexEnvironment env,
boost::scoped_ptr< Book > &  book,
BookCheck bookCheck,
PLAYER &  player 
) [inline]

Definition at line 48 of file BookBuilderCommands.hpp.

template<class PLAYER >
BookBuilderCommands< PLAYER >::~BookBuilderCommands (  )  [inline]

Definition at line 59 of file BookBuilderCommands.hpp.


Member Function Documentation

template<class PLAYER >
void BookBuilderCommands< PLAYER >::CmdBookExpand ( HtpCommand cmd  )  [inline, private]

Expands the current node in the current opening book.

"book-expand [iterations]"

Definition at line 132 of file BookBuilderCommands.hpp.

References Game::Board(), BookCommands::m_book, BookBuilderCommands< PLAYER >::m_bookBuilder, BookCommands::m_env, BookCommands::m_game, HexEnvironment::SyncBoard(), and StoneBoard::WhoseTurn().

template<class PLAYER >
void BookBuilderCommands< PLAYER >::CmdBookIncreaseWidth ( HtpCommand cmd  )  [inline, private]

Increases the width of all internal nodes that need to be increased.

See BookBuilder::IncreaseWidth().

Definition at line 162 of file BookBuilderCommands.hpp.

References Game::Board(), BookCommands::m_book, BookBuilderCommands< PLAYER >::m_bookBuilder, BookCommands::m_env, BookCommands::m_game, HexEnvironment::SyncBoard(), UNUSED(), and StoneBoard::WhoseTurn().

template<class PLAYER >
void BookBuilderCommands< PLAYER >::CmdBookPriorities ( HtpCommand cmd  )  [inline, private]
template<class PLAYER >
void BookBuilderCommands< PLAYER >::CmdBookRefresh ( HtpCommand cmd  )  [inline, private]
template<class PLAYER >
void BookBuilderCommands< PLAYER >::CmdParamBookBuilder ( HtpCommand cmd  )  [inline, private]
template<class PLAYER >
void BookBuilderCommands< PLAYER >::Register ( GtpEngine &  engine,
const std::string &  command,
typename GtpCallback< BookBuilderType >::Method  method 
) [inline, private]

Definition at line 78 of file BookBuilderCommands.hpp.

template<class PLAYER >
void BookBuilderCommands< PLAYER >::Register ( GtpEngine &  engine  )  [inline]

Reimplemented from BookCommands.

Definition at line 64 of file BookBuilderCommands.hpp.

Referenced by MoHexEngine::MoHexEngine().


Member Data Documentation

boost::scoped_ptr<Book>& BookCommands::m_book [protected, inherited]
template<class PLAYER>
BookBuilder<PLAYER> BookBuilderCommands< PLAYER >::m_bookBuilder [private]
BookCheck& BookCommands::m_bookCheck [protected, inherited]

Definition at line 38 of file BookCommands.hpp.

Referenced by BookCommands::CmdBookParam(), and BookCommands::CmdBookScores().

HexEnvironment& BookCommands::m_env [protected, inherited]
Game& BookCommands::m_game [protected, inherited]

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


6 Jan 2011 Doxygen 1.6.3