libmcts
A Monte Carlo Tree Search Library
ivisitor.hpp
1 #ifndef VISITOR_H
2 #define VISITOR_H
3 
4 namespace mcts {
5 
6 // forward declaring node interface
7 template <typename Context, typename Config> class INode;
8 
9 // ----------------------------------------------------------------------
14 // ----------------------------------------------------------------------
15 template <typename Context, typename Config> class IVisitor {
17 
18 public:
20 
21  virtual ~IVisitor() {}
22  virtual void visit(node_t *node) = 0;
23 };
24 }
25 
26 #endif
basic interface for a node in the tree. Every node has to implement this functions.
Definition: inode.hpp:18
implements interface for visitor objects.
Definition: ivisitor.hpp:15