Debian Codegraph @

old-sample/legacy-checkmate/lib/analyzer/proofTreeDepth.h

raw
1 #ifndef _PROOFTREEDEPTH_H
2 #define _PROOFTREEDEPTH_H
3 #include "osl/hash/hashKey.h"
4 #include <boost/scoped_ptr.hpp>
5 namespace osl
6 {
7 namespace state
8 {
9 class NumEffectState;
10 }
11 namespace checkmate
12 {
13 class CheckHashRecord;
14 class DfpnTable;
15 namespace analyzer
16 {
17 /**
18 * 詰までの手数を数える.
19 * 詰将棋ルーチン次第で,無駄合なども含まれるため
20 * 人間の感覚と一致するとは限らない.
21 */
22 class ProofTreeDepth
23 {
24 class Table;
25 std::unique_ptr<Table> table;
26 public:
27 ProofTreeDepth();
28 ~ProofTreeDepth();
29 int depth(const CheckHashRecord *record, bool is_or_node) const;
30 private:
31 int orNode(const CheckHashRecord *record) const;
32 int andNode(const CheckHashRecord *record) const;
33 };
34
35 } // namespace analyzer
36 } // namespace checkmate
37 }
38
39 #endif /* _PROOFTREEDEPTH_H */
40 // ;;; Local Variables:
41 // ;;; mode:c++
42 // ;;; c-basic-offset:2
43 // ;;; End: