root/06/devel-old/search.h

Revision 66, 1.3 kB (checked in by ug, 4 years ago)

Miscellaneous C++ transcoding

Line 
1 #include Python.h
2 #include sgfpars.h
3
4
5 class NLEntry {
6 public:
7   char* white;
8   char* black;
9   char* date;
10   char* filename;
11   char* result;
12   char signature[12];
13
14   char* concat();
15 };
16
17
18 class SGFDatabase {
19  public:
20   int boardsize;
21   char* datap1;
22   int datap2;
23   char* sgfpath;
24   int disabled;
25   int algos;
26   namelist;
27   current;
28   results;
29  
30   SGFDatabase(int bs, PyObject* pBar);
31   void clear();
32   pair<char*, int> getFilename(int index);
33   void process(char* dbpath, pair<char*, int> datap, int algos, PyObject* filelist,
34                PyObject* messages, PyObject gamelist,
35                int sloppySGF = 1, int duplicateCheck = 1,
36                int strictDuplicateCheck = 0, int processVariations = 0);
37
38
39 };
40
41
42
43 class Pattern {
44  public:
45
46   int flip, colorSwitch;
47   char moveOne, moveTwo;
48
49   Pattern(PyObject* anch, PyObject* initialDict, PyObject* contList, char mOne);
50  
51   char BW2XO(char c);
52   bool operator==(const &Pattern p);
53 }
54
55
56 class PatternList {
57  public:
58   Pattern pattern;
59   int fixedColor, nextMove;
60   vector<Pattern> data;
61
62   PatternList(Pattern p, int fColor, int nMove);
63
64   char invertColor(char co);
65   vector<Pattern> patternList();
66   Pattern get(int i);
67   int size();
68   updateContinuations();
69 };
70
71
72 class hashTable {
73 };
74
75
76
77 virtual class Algorithm {
78   Algorithm(int bs);
79  
80
81 };
82
83
84
85
86
87
88
89
90
91
92
93
94
Note: See TracBrowser for help on using the browser.