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

StateとOBMoveを保持する. More...

#include <openingBook.h>

List of all members.

Public Member Functions

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

Private Member Functions

int readInt ()
void seek (int offset)

Private Attributes

int nStates
std::ifstream ifs

Detailed Description

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

Definition at line 98 of file openingBook.h.


Constructor & Destructor Documentation

Definition at line 13 of file openingBook.cc.

References ifs, nStates, and readInt().

Definition at line 26 of file openingBook.cc.


Member Function Documentation

Definition at line 75 of file openingBook.cc.

References osl::record::readInt().

Referenced by printStats().

Definition at line 49 of file openingBook.cc.

References osl::Move::makeDirect(), moves, and osl::record::readInt().

Referenced by printNextMoves().

Definition at line 68 of file openingBook.cc.

References osl::record::readInt().

Referenced by printStats().

Definition at line 31 of file openingBook.cc.

Referenced by WinCountBook().

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

Definition at line 43 of file openingBook.cc.


Member Data Documentation

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

Definition at line 101 of file openingBook.h.

Referenced by WinCountBook().

Definition at line 100 of file openingBook.h.

Referenced by WinCountBook().


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