All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
searchMonitor.h
Go to the documentation of this file.
1 /* searchMonitor.h
2  */
3 #ifndef OSL_SEARCHMONITOR_H
4 #define OSL_SEARCHMONITOR_H
5 #include "osl/move.h"
6 #include "osl/misc/cstdint.h"
7 namespace osl
8 {
9  namespace search
10  {
12  {
13  public:
14  virtual ~SearchMonitor();
15 
16  virtual void newDepth(int depth);
17  virtual void showPV(int depth, size_t node_count, double elapsed, int value, Move cur, const Move *first, const Move *last,
18  const bool *threatmate_first, const bool *threatmate_last);
19  virtual void showFailLow(int depth, size_t node_count, double elapsed, int value, Move cur);
20  virtual void rootMove(Move cur);
21  virtual void rootFirstMove(Move cur);
22  virtual void timeInfo(size_t node_count, double elapsed);
23  virtual void hashInfo(double ratio);
24  virtual void rootForcedMove(Move the_move);
25  virtual void rootLossByCheckmate();
26  virtual void depthFinishedNormally(int depth);
27  virtual void searchFinished();
28  };
29 
30  class CerrMonitor : public SearchMonitor
31  {
32  public:
33  void showPV(int depth, size_t node_count, double elapsed, int value, Move cur, const Move *first, const Move *last,
34  const bool *threatmate_first, const bool *threatmate_last);
35  };
36  }
38 }
39 
40 #endif /* OSL_SEARCHMONITOR_H */
41 // ;;; Local Variables:
42 // ;;; mode:c++
43 // ;;; c-basic-offset:2
44 // ;;; End: