#include <searchRecorder.h>


Classes | |
| struct | Recorder |
Public Member Functions | |
| SearchRecorder (const char *filename="mtdf.log") | |
| ~SearchRecorder () | |
| void | setLogMargin (int margin=500) |
| どの程度深く記録を取るか指示 | |
| void | tryMove (const MoveLogProb &m, int last_f, int limit) const |
| recordValue とセットで呼ぶ | |
| void | retryMove (const MoveLogProb &m, int last_f, int limit, int retryCount) const |
| recordValue とセットで呼ぶ | |
| void | recordValue (const MoveLogProb &m, int val, bool betterMove, int limit) const |
| tryMove とセットで呼ぶ | |
| void | tableHitLowerBound (Player p, int val, int last_f, int limit) const |
| void | tableHitUpperBound (Player p, int val, int last_f, int limit) const |
| void | tableStoreLowerBound (Player p, const MoveLogProb &best_move, int val, int limit) const |
| void | tableStoreUpperBound (Player p, const MoveLogProb &best_move, int val, int limit) const |
| void | recordTopLevelLowFail (const MoveLogProb &, int last_f) const |
| 主に数の記録用 | |
| void | recordTopLevelHighFail (const MoveLogProb &best_move, int last_f) const |
| void | startSearch (int limit) const |
| void | finishSearch (Move best_move, double seconds_consumed, bool verbose) const |
| これは遅くても気にしない | |
| void | newCategory (const char *name, int limit) const |
| void | gotoCheckmateSearch (const state::SimpleState &, int nodeLimit) const |
| 詰将棋無限ループ発見用 | |
| void | backFromCheckmateSearch () const |
| std::ostream & | stream () const |
| ログにメッセージを混ぜたいときに使う | |
Private Attributes | |
| boost::scoped_ptr< Recorder > | recorder |
| hide implementation | |
Definition at line 140 of file searchRecorder.h.
| osl::search::SearchRecorder::SearchRecorder | ( | const char * | filename = "mtdf.log" | ) | [explicit] |
Definition at line 126 of file searchRecorder.cc.
Definition at line 132 of file searchRecorder.cc.
| void osl::search::SearchRecorder::backFromCheckmateSearch | ( | ) | const |
Reimplemented from osl::search::CountRecorder.
Definition at line 298 of file searchRecorder.cc.
References checkmateFileName.
| void osl::search::SearchRecorder::finishSearch | ( | Move | best, |
| double | seconds_consumed, | ||
| bool | verbose | ||
| ) | const [virtual] |
これは遅くても気にしない
Reimplemented from osl::search::CountRecorder.
Definition at line 273 of file searchRecorder.cc.
References osl::search::CountRecorder::finishSearch().
| void osl::search::SearchRecorder::gotoCheckmateSearch | ( | const state::SimpleState & | , |
| int | |||
| ) | const |
詰将棋無限ループ発見用
Reimplemented from osl::search::CountRecorder.
Definition at line 280 of file searchRecorder.cc.
References checkmateFileName.
| void osl::search::SearchRecorder::newCategory | ( | const char * | name, |
| int | limit | ||
| ) | const |
Reimplemented from osl::search::CountRecorder.
| void osl::search::SearchRecorder::recordTopLevelHighFail | ( | const MoveLogProb & | best_move, |
| int | last_f | ||
| ) | const |
Reimplemented from osl::search::CountRecorder.
Definition at line 258 of file searchRecorder.cc.
| void osl::search::SearchRecorder::recordTopLevelLowFail | ( | const MoveLogProb & | , |
| int | |||
| ) | const |
主に数の記録用
Reimplemented from osl::search::CountRecorder.
Definition at line 252 of file searchRecorder.cc.
| void osl::search::SearchRecorder::recordValue | ( | const MoveLogProb & | , |
| int | , | ||
| bool | , | ||
| int | |||
| ) | const |
tryMove とセットで呼ぶ
Reimplemented from osl::search::CountRecorder.
Definition at line 174 of file searchRecorder.cc.
References osl::csaShow(), osl::MoveLogProb::move(), osl::search::CountRecorder::recordValue(), and showAllValues.
| void osl::search::SearchRecorder::retryMove | ( | const MoveLogProb & | , |
| int | , | ||
| int | , | ||
| int | |||
| ) | const |
recordValue とセットで呼ぶ
Reimplemented from osl::search::CountRecorder.
Definition at line 158 of file searchRecorder.cc.
References osl::csaShow(), osl::MoveLogProb::logProb(), and osl::MoveLogProb::move().
| void osl::search::SearchRecorder::setLogMargin | ( | int | margin = 500 | ) |
どの程度深く記録を取るか指示
Definition at line 137 of file searchRecorder.cc.
| void osl::search::SearchRecorder::startSearch | ( | int | limit | ) | const |
Reimplemented from osl::search::CountRecorder.
Definition at line 265 of file searchRecorder.cc.
References limit, and osl::search::CountRecorder::startSearch().
| std::ostream & osl::search::SearchRecorder::stream | ( | ) | const |
ログにメッセージを混ぜたいときに使う
Definition at line 307 of file searchRecorder.cc.
| void osl::search::SearchRecorder::tableHitLowerBound | ( | Player | p, |
| int | val, | ||
| int | last_f, | ||
| int | limit | ||
| ) | const |
Reimplemented from osl::search::CountRecorder.
Definition at line 199 of file searchRecorder.cc.
References lowerChar().
| void osl::search::SearchRecorder::tableHitUpperBound | ( | Player | p, |
| int | val, | ||
| int | last_f, | ||
| int | limit | ||
| ) | const |
Reimplemented from osl::search::CountRecorder.
Definition at line 210 of file searchRecorder.cc.
References higherChar().
| void osl::search::SearchRecorder::tableStoreLowerBound | ( | Player | p, |
| const MoveLogProb & | best_move, | ||
| int | val, | ||
| int | limit | ||
| ) | const |
Reimplemented from osl::search::CountRecorder.
Definition at line 221 of file searchRecorder.cc.
References osl::csaShow(), osl::Move::isInvalid(), osl::Move::isValidOrPass(), lowerChar(), and osl::MoveLogProb::move().
| void osl::search::SearchRecorder::tableStoreUpperBound | ( | Player | p, |
| const MoveLogProb & | best_move, | ||
| int | val, | ||
| int | limit | ||
| ) | const |
Reimplemented from osl::search::CountRecorder.
Definition at line 237 of file searchRecorder.cc.
References osl::csaShow(), higherChar(), osl::Move::isInvalid(), osl::Move::isValidOrPass(), and osl::MoveLogProb::move().
| void osl::search::SearchRecorder::tryMove | ( | const MoveLogProb & | , |
| int | , | ||
| int | |||
| ) | const |
recordValue とセットで呼ぶ
Reimplemented from osl::search::CountRecorder.
Definition at line 143 of file searchRecorder.cc.
References osl::csaShow(), osl::MoveLogProb::logProb(), and osl::MoveLogProb::move().
boost::scoped_ptr<Recorder> osl::search::SearchRecorder::recorder [private] |
hide implementation
Definition at line 142 of file searchRecorder.h.
1.7.6.1