| 1 |
/* disproofTreeTraverser.h |
| 2 |
*/ |
| 3 |
#ifndef _CHECK_DISPROOFTREETRAVERSER_H |
| 4 |
#define _CHECK_DISPROOFTREETRAVERSER_H |
| 5 |
|
| 6 |
#include "analyzer/treeTraverser.h" |
| 7 |
namespace osl |
| 8 |
{ |
| 9 |
namespace checkmate |
| 10 |
{ |
| 11 |
namespace analyzer |
| 12 |
{ |
| 13 |
/** |
| 14 |
* disproof tree を検証 |
| 15 |
*/ |
| 16 |
class DisproofTreeTraverser : public TreeTraverser |
| 17 |
{ |
| 18 |
/** root から呼んでいない場合,isVisitedの判定ができないことがある*/ |
| 19 |
bool isPartialStack; |
| 20 |
public: |
| 21 |
DisproofTreeTraverser(TreeWriter&, const TwinTable&, |
| 22 |
bool isPartialStack=false); |
| 23 |
~DisproofTreeTraverser(); |
| 24 |
protected: |
| 25 |
void orNode(Move m, const CheckHashRecord *record, const HashKey& key, |
| 26 |
const PathEncoding& path); |
| 27 |
void andNode(Move, const CheckHashRecord *record, const HashKey& key, |
| 28 |
const PathEncoding& path); |
| 29 |
}; |
| 30 |
} // namespace analyzer |
| 31 |
} // namespace checkmate |
| 32 |
} // namespace osl |
| 33 |
|
| 34 |
|
| 35 |
#endif /* _CHECK_TREETRAVERSER_H */ |
| 36 |
// ;;; Local Variables: |
| 37 |
// ;;; mode:c++ |
| 38 |
// ;;; c-basic-offset:2 |
| 39 |
// ;;; End: |