#include <openingBook.h>
Public メソッド | |
WeightedBook (const char *filename) | |
~WeightedBook () | |
vector< WMove > | getMoves (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 |
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.h の 160 行で定義されています。
osl::record::opening::WeightedBook::WeightedBook | ( | const char * | filename | ) |
osl::record::opening::WeightedBook::~WeightedBook | ( | ) |
openingBook.cc の 118 行で定義されています。
osl::vector< osl::record::opening::WMove > osl::record::opening::WeightedBook::getMoves | ( | int | stateIndex | ) |
openingBook.cc の 129 行で定義されています。
参照先 HEADER_SIZE, ifs, MOVE_SIZE, moves, nStates, osl::record::readInt(), seek(), と STATE_SIZE.
参照元 main(), osl::game_playing::DeterminateWeightTracer::selectMove(), osl::game_playing::WeightTracer::selectMove(), osl::game_playing::WeightTracer::update(), と validate().
int osl::record::opening::WeightedBook::getWhiteWinCount | ( | int | stateIndex | ) |
openingBook.cc の 158 行で定義されています。
参照先 HEADER_SIZE, ifs, osl::record::readInt(), seek(), と STATE_SIZE.
int osl::record::opening::WeightedBook::getBlackWinCount | ( | int | stateIndex | ) |
openingBook.cc の 167 行で定義されています。
参照先 HEADER_SIZE, ifs, osl::record::readInt(), seek(), と STATE_SIZE.
osl::SimpleState osl::record::opening::WeightedBook::getBoard | ( | int | stateIndex | ) |
openingBook.cc の 148 行で定義されています。
参照先 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] |
int osl::record::opening::WeightedBook::getStartState | ( | ) | const [inline] |
void osl::record::opening::WeightedBook::validate | ( | ) |
openingBook.cc の 177 行で定義されています。
参照先 getBoard(), getMoves(), osl::HIRATE, moves, nStates, startState, と state.
void osl::record::opening::WeightedBook::seek | ( | int | offset | ) | [private] |
openingBook.cc の 123 行で定義されています。
参照先 ifs.
参照元 getBlackWinCount(), getBoard(), getMoves(), と getWhiteWinCount().
int osl::record::opening::WeightedBook::nStates [private] |
openingBook.h の 162 行で定義されています。
参照元 getBoard(), getMoves(), getTotalState(), validate(), と WeightedBook().
int osl::record::opening::WeightedBook::nMoves [private] |
int osl::record::opening::WeightedBook::startState [private] |
std::ifstream osl::record::opening::WeightedBook::ifs [private] |
openingBook.h の 165 行で定義されています。
参照元 getBlackWinCount(), getBoard(), getMoves(), getWhiteWinCount(), seek(), と WeightedBook().
const int osl::record::opening::WeightedBook::HEADER_SIZE = 16 [static, private] |
openingBook.h の 178 行で定義されています。
参照元 getBlackWinCount(), getBoard(), getMoves(), と getWhiteWinCount().
const int osl::record::opening::WeightedBook::STATE_SIZE = 16 [static, private] |
openingBook.h の 179 行で定義されています。
参照元 getBlackWinCount(), getBoard(), getMoves(), と getWhiteWinCount().
const int osl::record::opening::WeightedBook::MOVE_SIZE = 12 [static, private] |
const int osl::record::opening::WeightedBook::BOARD_SIZE = 41 * 4 [static, private] |