Public メソッド | Private メソッド | Private 変数

クラス osl::book::WinCountBook

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

#include <openingBook.h>

すべてのメンバ一覧

Public メソッド

 WinCountBook (const char *filename)
 ~WinCountBook ()
int winCount (int stateIndex)
int loseCount (int stateIndex)
std::vector< OBMovemoves (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.h82 行で定義されています。


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

osl::book::WinCountBook::WinCountBook ( const char *  filename  ) 

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

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

osl::book::WinCountBook::~WinCountBook (  ) 

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


関数

int osl::book::WinCountBook::loseCount ( int  stateIndex  ) 

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

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

std::vector< osl::book::OBMove > osl::book::WinCountBook::moves ( int  stateIndex  ) 

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

参照先 osl::Move::makeDirect(), nStates, readInt(), と seek().

int osl::book::WinCountBook::readInt (  )  [private]

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

参照先 ifs.

参照元 loseCount(), moves(), winCount(), と WinCountBook().

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

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

参照先 ifs.

参照元 loseCount(), moves(), と winCount().

int osl::book::WinCountBook::winCount ( int  stateIndex  ) 

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

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


変数

std::ifstream osl::book::WinCountBook::ifs [private]

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

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

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

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


このクラスの説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義