クラス osl::record::opening::WeightedBook

StateWMoveݻ. [詳細]

#include <openingBook.h>

すべてのメンバ一覧

Public メソッド

 WeightedBook (const char *filename)
 ~WeightedBook ()
vector< WMovegetMoves (int stateIndex)
int getWhiteWinCount (int stateIndex)
int getBlackWinCount (int stateIndex)
SimpleState getBoard (int stateIndex)
int getTotalState () const
int getStartState () const
void validate ()

Private メソッド

void seek (int offset)

Private 変数

int nStates
int nMoves
int startState
std::ifstream ifs

Static Private 変数

static const int HEADER_SIZE = 16
static const int STATE_SIZE = 16
static const int MOVE_SIZE = 12
static const int BOARD_SIZE = 41 * 4


説明

StateWMoveݻ.

Statevector<WMove>ݻ WMoveMoveȤMoveѤStateindexȼ֤鸫 MoveνŤ(0-1000) ե versionֹ - 4byte state - 4byte move - 4byte state index - 4byte State - 16byte * state + WMoveγindex + WMoveο + ξ + ξ WMove - 12byte * WMove + Move (4byte) + Stateindex + Weight CompactBoard - 164byte * state

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


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

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

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

参照先 ifs, nMoves, nStates, osl::record::readInt(), と startState.

osl::record::opening::WeightedBook::~WeightedBook (  ) 

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


関数

osl::vector< osl::record::opening::WMove > osl::record::opening::WeightedBook::getMoves ( int  stateIndex  ) 

int osl::record::opening::WeightedBook::getWhiteWinCount ( int  stateIndex  ) 

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

参照先 HEADER_SIZE, ifs, osl::record::readInt(), seek(), と STATE_SIZE.

int osl::record::opening::WeightedBook::getBlackWinCount ( int  stateIndex  ) 

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

参照先 HEADER_SIZE, ifs, osl::record::readInt(), seek(), と STATE_SIZE.

osl::SimpleState osl::record::opening::WeightedBook::getBoard ( int  stateIndex  ) 

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

参照先 BOARD_SIZE, osl::record::CompactBoard::getState(), HEADER_SIZE, ifs, MOVE_SIZE, nMoves, nStates, seek(), と STATE_SIZE.

参照元 main(), と validate().

int osl::record::opening::WeightedBook::getTotalState (  )  const [inline]

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

参照先 nStates.

参照元 main().

int osl::record::opening::WeightedBook::getStartState (  )  const [inline]

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

参照先 startState.

参照元 main().

void osl::record::opening::WeightedBook::validate (  ) 

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

参照先 getBoard(), getMoves(), osl::HIRATE, moves, nStates, startState, と state.

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

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

参照先 ifs.

参照元 getBlackWinCount(), getBoard(), getMoves(), と getWhiteWinCount().


変数

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

参照元 getBoard(), getMoves(), getTotalState(), validate(), と WeightedBook().

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

参照元 getBoard(), と WeightedBook().

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

参照元 getStartState(), validate(), と WeightedBook().

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

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

参照元 getBlackWinCount(), getBoard(), getMoves(), getWhiteWinCount(), seek(), と WeightedBook().

const int osl::record::opening::WeightedBook::HEADER_SIZE = 16 [static, private]

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

参照元 getBlackWinCount(), getBoard(), getMoves(), と getWhiteWinCount().

const int osl::record::opening::WeightedBook::STATE_SIZE = 16 [static, private]

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

参照元 getBlackWinCount(), getBoard(), getMoves(), と getWhiteWinCount().

const int osl::record::opening::WeightedBook::MOVE_SIZE = 12 [static, private]

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

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

const int osl::record::opening::WeightedBook::BOARD_SIZE = 41 * 4 [static, private]

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

参照元 getBoard().


このクラスの説明は次のファイルから生成されました:

Thu Oct 8 05:01:18 2009に生成されました。  doxygen 1.5.6