All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
dotWriter.h
Go to the documentation of this file.
1 /* dotWriter.h
2  */
3 #ifndef _DOTWRITER_H
4 #define _DOTWRITER_H
5 
7 #include <boost/scoped_ptr.hpp>
8 
9 namespace osl
10 {
11  namespace hash
12  {
13  class HashKey;
14  }
15  namespace search
16  {
17  class SimpleHashTable;
18 
19  namespace analyzer
20  {
21  class RecordSet;
25  class DotWriter : public LogWriter
26  {
31  boost::scoped_ptr<RecordSet> written;
32  std::ostream& os;
33  public:
34  explicit DotWriter(std::ostream& os);
35  ~DotWriter();
36  void showNode(Player turn, const SimpleHashRecord *record,
37  int limit, NodeType type) const;
38  void showNodeQuiescence(Player turn,
39  const SimpleHashRecord *record,
40  int limit, NodeType type) const;
41  void showArc(const SimpleHashRecord *from,
42  const SimpleHashRecord *to,
43  const MoveLogProb& move, bool important) const;
44  void showComment(const char *line) const;
45  };
46  } // namespace analyzer
47  } // namespace search
48 } // namespace osl
49 
50 #endif /* _DOTWRITER_H */
51 // ;;; Local Variables:
52 // ;;; mode:c++
53 // ;;; c-basic-offset:2
54 // ;;; End: