All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Private Attributes | List of all members
osl::search::SearchRecorder Class Reference

#include <searchRecorder.h>

Inheritance diagram for osl::search::SearchRecorder:
Inheritance graph
[legend]
Collaboration diagram for osl::search::SearchRecorder:
Collaboration graph
[legend]

Classes

struct  Recorder
 

Public Member Functions

 SearchRecorder (const char *filename="mtdf.log")
 
 ~SearchRecorder ()
 
void setLogMargin (int margin=500)
 どの程度深く記録を取るか指示 More...
 
void tryMove (const MoveLogProb &m, int last_f, int limit) const
 
void retryMove (const MoveLogProb &m, int last_f, int limit, int retryCount) const
 
void recordValue (const MoveLogProb &m, int val, bool betterMove, int limit) const
 
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
 これは遅くても気にしない More...
 
void newCategory (const char *name, int limit) const
 
void gotoCheckmateSearch (const state::SimpleState &, int nodeLimit) const
 
void backFromCheckmateSearch () const
 
std::ostream & stream () const
 ログにメッセージを混ぜたいときに使う More...
 
- Public Member Functions inherited from osl::search::CountRecorder
 CountRecorder ()
 以下を定義すると詰将棋に入った時の局面を別ファイルに保存する More...
 
virtual ~CountRecorder ()
 
void addNodeCount (int count=1)
 探索の途中終了で使えるように必ず数える More...
 
void addQuiescenceCount (int count=1)
 
void addCheckmateCount (int count=1)
 
void setCheckmateCount (int count)
 
void resetNodeCount ()
 
size_t nodeCount () const
 
size_t quiescenceCount () const
 
size_t checkmateCount () const
 
size_t searchNodeCount () const
 
size_t allNodeCount () const
 
double checkmateRatio () const
 
void tryMove (const MoveLogProb &, int, int) const
 recordValue とセットで呼ぶ More...
 
void retryMove (const MoveLogProb &, int, int, int) const
 recordValue とセットで呼ぶ More...
 
void recordValue (const MoveLogProb &, int, bool, int) const
 tryMove とセットで呼ぶ More...
 
void recordTopLevelLowFail (const MoveLogProb &, int) const
 主に数の記録用 More...
 
void recordTopLevelHighFail (const MoveLogProb &, int) const
 
void tableHitLowerBound (Player, int, int, int) const
 
void tableHitUpperBound (Player, int, int, int) const
 
void tableStoreLowerBound (Player, const MoveLogProb &, int, int) const
 
void tableStoreUpperBound (Player, const MoveLogProb &, int, int) const
 
void startSearch (int) const
 
void recordInvalidMoveInTable (const state::SimpleState &, const MoveLogProb &, int limit) const
 
void newCategory (const char *, int) const
 
void gotoCheckmateSearch (const state::SimpleState &, int) const
 詰将棋無限ループ発見用 More...
 
void backFromCheckmateSearch () const
 
void reportCount (std::ostream &, double seconds) const
 
void reportCount (std::ostream &) const
 

Private Attributes

boost::scoped_ptr< Recorderrecorder
 hide implementation More...
 

Detailed Description

Definition at line 140 of file searchRecorder.h.

Constructor & Destructor Documentation

osl::search::SearchRecorder::SearchRecorder ( const char *  filename = "mtdf.log")
explicit

Definition at line 128 of file searchRecorder.cc.

osl::search::SearchRecorder::~SearchRecorder ( )

Definition at line 134 of file searchRecorder.cc.

Member Function Documentation

void osl::search::SearchRecorder::backFromCheckmateSearch ( ) const

Definition at line 300 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 275 of file searchRecorder.cc.

References osl::search::CountRecorder::finishSearch().

void osl::search::SearchRecorder::gotoCheckmateSearch ( const state::SimpleState ,
int  nodeLimit 
) const

Definition at line 282 of file searchRecorder.cc.

References checkmateFileName.

void osl::search::SearchRecorder::newCategory ( const char *  name,
int  limit 
) const
void osl::search::SearchRecorder::recordTopLevelHighFail ( const MoveLogProb best_move,
int  last_f 
) const

Definition at line 260 of file searchRecorder.cc.

void osl::search::SearchRecorder::recordTopLevelLowFail ( const MoveLogProb ,
int  last_f 
) const

Definition at line 254 of file searchRecorder.cc.

void osl::search::SearchRecorder::recordValue ( const MoveLogProb m,
int  val,
bool  betterMove,
int  limit 
) const
void osl::search::SearchRecorder::retryMove ( const MoveLogProb m,
int  last_f,
int  limit,
int  retryCount 
) const
void osl::search::SearchRecorder::setLogMargin ( int  margin = 500)

どの程度深く記録を取るか指示

Definition at line 139 of file searchRecorder.cc.

void osl::search::SearchRecorder::startSearch ( int  limit) const

Definition at line 267 of file searchRecorder.cc.

References limit, and osl::search::CountRecorder::startSearch().

std::ostream & osl::search::SearchRecorder::stream ( ) const

ログにメッセージを混ぜたいときに使う

Definition at line 309 of file searchRecorder.cc.

void osl::search::SearchRecorder::tableHitLowerBound ( Player  p,
int  val,
int  last_f,
int  limit 
) const

Definition at line 201 of file searchRecorder.cc.

References lowerChar().

void osl::search::SearchRecorder::tableHitUpperBound ( Player  p,
int  val,
int  last_f,
int  limit 
) const

Definition at line 212 of file searchRecorder.cc.

References higherChar().

void osl::search::SearchRecorder::tableStoreLowerBound ( Player  p,
const MoveLogProb best_move,
int  val,
int  limit 
) const
void osl::search::SearchRecorder::tableStoreUpperBound ( Player  p,
const MoveLogProb best_move,
int  val,
int  limit 
) const
void osl::search::SearchRecorder::tryMove ( const MoveLogProb m,
int  last_f,
int  limit 
) const

Member Data Documentation

boost::scoped_ptr<Recorder> osl::search::SearchRecorder::recorder
private

hide implementation

Definition at line 142 of file searchRecorder.h.


The documentation for this class was generated from the following files: