Debian Codegraph @

old-sample/legacy-checkmate/lib/twinList.cc

raw
1 /* twinList.cc
2 */
3 #include "twinList.h"
4 #include "checkHashRecord.h"
5 #include <iostream>
6
7 void osl::checkmate::
8 TwinList::clear()
9 {
10 slist<TwinEntry>::clear();
11 size_cache = 0;
12 }
13
14 #ifndef MINIMAL
15 void osl::checkmate::
16 TwinList::dump(std::ostream& os) const
17 {
18 os << "twin list " << size() << "\n";
19 for (const_iterator p=begin(); p!=end(); ++p)
20 {
21 os << "twins " << p->path << " " << p->move.move
22 << " loop to " << p->loopTo;
23 if (p->move.record)
24 {
25 os << " " << p->move.record->proofDisproof()
26 << " " << p->move.record
27 << " #next-twins " << p->move.record->twins.size();
28 }
29 os << "\n";
30 }
31 }
32 #endif
33 /* ------------------------------------------------------------------------- */
34 // ;;; Local Variables:
35 // ;;; mode:c++
36 // ;;; c-basic-offset:2
37 // ;;; End: