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

クラス osl::record::KanjiMove

Parse kanji records such as "7六歩", the style of which is generally used to write Shogi records in Japanese. [詳細]

#include <kanjiMove.h>

すべてのメンバ一覧

Public メソッド

 KanjiMove ()
 ~KanjiMove ()
const Move strToMove (const std::string &, const NumEffectState &state, const Move &last_move) const
 Convert a Japanese string (one token) to a move object.
void setVerbose (bool verbose)
Square toSquare (const std::string &) const
Ptype toPtype (const std::string &) const

Static Public メソッド

static const KanjiMoveinstance ()

Private 型

typedef std::list< Movefound_moves_t
typedef std::unordered_map
< std::string, Square
str2position_t
typedef std::unordered_map
< std::string, Ptype
str2piece_t

Private メソッド

void selectCandidates (found_moves_t &found, std::string &str, const Square &to_pos, const Player &player) const

Private 変数

str2position_t str2position
str2piece_t str2piece
bool verbose

説明

Parse kanji records such as "7六歩", the style of which is generally used to write Shogi records in Japanese.

kanjiMove.h19 行で定義されています。


型定義

typedef std::list<Move> osl::record::KanjiMove::found_moves_t [private]

kanjiMove.h38 行で定義されています。

typedef std::unordered_map<std::string, Ptype> osl::record::KanjiMove::str2piece_t [private]

kanjiMove.h46 行で定義されています。

typedef std::unordered_map<std::string, Square> osl::record::KanjiMove::str2position_t [private]

kanjiMove.h44 行で定義されています。


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

osl::record::KanjiMove::KanjiMove (  ) 
osl::record::KanjiMove::~KanjiMove (  ) 

kanjiMove.cc255 行で定義されています。


関数

const osl::record::KanjiMove & osl::record::KanjiMove::instance (  )  [static]

kanjiMove.cc493 行で定義されています。

void osl::record::KanjiMove::selectCandidates ( found_moves_t found,
std::string &  str,
const Square to_pos,
const Player player 
) const [private]
void osl::record::KanjiMove::setVerbose ( bool  verbose  )  [inline]

kanjiMove.h31 行で定義されています。

const osl::Move osl::record::KanjiMove::strToMove ( const std::string &  orig,
const NumEffectState state,
const Move last_move 
) const
osl::Ptype osl::record::KanjiMove::toPtype ( const std::string &  s  )  const

kanjiMove.cc269 行で定義されています。

参照先 str2piece.

参照元 strToMove().

osl::Square osl::record::KanjiMove::toSquare ( const std::string &  s  )  const

kanjiMove.cc260 行で定義されています。

参照先 str2position.

参照元 strToMove().


変数

kanjiMove.h47 行で定義されています。

参照元 KanjiMove(), と toPtype().

kanjiMove.h45 行で定義されています。

参照元 KanjiMove(), と toSquare().

kanjiMove.h48 行で定義されています。

参照元 strToMove().


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