ネームスペース osl::record::usi

構成

class  ParseError
class  UsiFile

関数

const Move strToMove (const std::string &, const state::SimpleState &)
PtypeO charToPtypeO (char)
const std::string show (Move)
const std::string show (PtypeO)
const std::string show (Piece)
const std::string show (const state::SimpleState &)
void parseBoard (const std::string &board, state::SimpleState &)
 盤面を取得する.
void parse (const std::string &line, state::SimpleState &)
 [sfen <sfenstring> | startpos ] moves <move1> .
void parse (const std::string &line, state::SimpleState &initial, vector< Move > &moves)
void escape (std::string &str)
 URIやFile systemとして使えるように、文字をescape.
void unescape (std::string &str)
 escapeされた文字を元に戻す.

関数

osl::PtypeO osl::record::usi::charToPtypeO ( char  c  ) 

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

参照先 osl::BLACK, osl::record::psn::charToPtype(), osl::newPtypeO(), osl::PTYPE_EMPTY, と osl::WHITE.

void osl::record::usi::escape ( std::string &  str  ) 

URIやFile systemとして使えるように、文字をescape.

これはGPSShogiによる拡張であり、standardではない. str自体が修正される

usi.cc219 行で定義されています。

参照元 checkmate_escape(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), と osl::checkmate::Dfpn::generateCheck().

void osl::record::usi::parse ( const std::string &  line,
state::SimpleState &  initial,
vector< Move > &  moves 
)
void osl::record::usi::parse ( const std::string &  line,
state::SimpleState &   
)

[sfen <sfenstring> | startpos ] moves <move1> .

.. <movei>

参照元 osl::record::usi::UsiFile::UsiFile().

void osl::record::usi::parseBoard ( const std::string &  board,
state::SimpleState &   
)

盤面を取得する.

board文字列が不正なときは、ParseErrorがthrowされる.

引数:
board USIの文字列
state boardの解析結果が出力される
const std::string osl::record::usi::show ( const state::SimpleState &   ) 
const std::string osl::record::usi::show ( Piece  p  ) 

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

参照先 osl::Piece::ptypeO(), と show().

const std::string osl::record::usi::show ( PtypeO  ptypeo  ) 

usi.cc28 行で定義されています。

参照先 osl::getOwner(), osl::getPtype(), osl::isPiece(), osl::isPromoted(), show(), osl::unpromote(), と osl::WHITE.

const std::string osl::record::usi::show ( Move  m  ) 

usi.cc16 行で定義されています。

参照先 osl::Move::DeclareWin(), osl::Move::isNormal(), と osl::Move::isPass().

参照元 show().

const Move osl::record::usi::strToMove ( const std::string &  ,
const state::SimpleState &   
)
void osl::record::usi::unescape ( std::string &  str  ) 

escapeされた文字を元に戻す.

これはGPSShogiによる拡張であり、standardではない. str自体が修正される

usi.cc227 行で定義されています。

 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義
Sun May 16 09:58:48 2010に生成されました。  doxygen 1.6.3