クラス osl::record::opening::WinCountBook

StateとOBMoveを保持する. [詳細]

#include <openingBook.h>

すべてのメンバ一覧

Public メソッド

 WinCountBook (const char *filename)
 ~WinCountBook ()
int getWinCount (int stateIndex)
int getLoseCount (int stateIndex)
vector< OBMovegetMoves (int stateIndex)

Private メソッド

int readInt ()
void seek (int offset)

Private 変数

int nStates
std::ifstream ifs

説明

StateとOBMoveを保持する.

Stateはvector<OBMove>と黒から見たwinCount, loseCountを保持する OBMoveはMoveとそのMoveを採用した時のStateのindex ファイル形式 state数 - 4byte State - 16byte * state数 + 黒のwinCount + 白のwinCount + OBMoveの数 + OBMoveの開始index OBMove - 8byte * OBMove数 + Move (4byte) + Stateのindex

openingBook.h98 行で定義されています。


コンストラクタとデストラクタ

osl::record::opening::WinCountBook::WinCountBook ( const char *  filename  ) 

openingBook.cc14 行で定義されています。

参照先 ifs, nStates, と readInt().

osl::record::opening::WinCountBook::~WinCountBook (  ) 

openingBook.cc27 行で定義されています。


関数

int osl::record::opening::WinCountBook::getLoseCount ( int  stateIndex  ) 

openingBook.cc76 行で定義されています。

参照先 readInt(), と seek().

参照元 printStats(), と osl::game_playing::WinCountTracer::selectMove().

osl::vector< osl::record::opening::OBMove > osl::record::opening::WinCountBook::getMoves ( int  stateIndex  ) 
int osl::record::opening::WinCountBook::getWinCount ( int  stateIndex  ) 

openingBook.cc69 行で定義されています。

参照先 readInt(), と seek().

参照元 printStats(), と osl::game_playing::WinCountTracer::selectMove().

int osl::record::opening::WinCountBook::readInt (  )  [private]

openingBook.cc32 行で定義されています。

参照先 ifs.

参照元 getLoseCount(), getMoves(), getWinCount(), と WinCountBook().

void osl::record::opening::WinCountBook::seek ( int  offset  )  [private]

openingBook.cc44 行で定義されています。

参照先 ifs.

参照元 getLoseCount(), getMoves(), と getWinCount().


変数

std::ifstream osl::record::opening::WinCountBook::ifs [private]

openingBook.h101 行で定義されています。

参照元 readInt(), seek(), と WinCountBook().

openingBook.h100 行で定義されています。

参照元 getMoves(), と WinCountBook().


このクラスの説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義
Sun May 16 09:58:48 2010に生成されました。  doxygen 1.6.3