Debian Codegraph @

old-sample/legacy-checkmate/lib/visitedCounter.h

raw
1 /* visitedCounter.h
2 */
3 #ifndef OSL_CHECKMATE_VISITEDCOUNTER_H
4 #define OSL_CHECKMATE_VISITEDCOUNTER_H
5
6 namespace osl
7 {
8 namespace checkmate
9 {
10 /**
11 * 外部からvisitedを書き込んだ数を記録しておく.
12 * @see CheckHistoryToTable
13 */
14 class VisitedCounter
15 {
16 int counter;
17 public:
18 VisitedCounter();
19 virtual ~VisitedCounter();
20
21 void incrementVisited() { ++counter; }
22 int countVisited() const { return counter; }
23 };
24 } // namespace checkmate
25 } // namespace osl
26
27 #endif /* OSL_CHECKMATE_VISITEDCOUNTER_H */
28 // ;;; Local Variables:
29 // ;;; mode:c++
30 // ;;; c-basic-offset:2
31 // ;;; End: