piecePairPieceEval.h Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
piecePairPieceEval.h
Go to the documentation of this file.
1 /* piecePairPieceEval.h
2 */
3 #ifndef EVAL_PPAIR_PIECEPAIRPIECEEVAL_H
4 #define EVAL_PPAIR_PIECEPAIRPIECEEVAL_H
5
6 #include "osl/eval/ppair/piecePairWithStand.h"
7 #include "osl/eval/ppair/piecePairTable.h"
8
9 namespace osl
10 {
11 namespace eval
12 {
13 namespace ppair
14 {
15 class PiecePairPieceTable : public PiecePairTable<signed short>
16 {
17 public:
18 PiecePairPieceTable();
19 ~PiecePairPieceTable();
24 bool setUp(const char *filename) const;
25
27 static const PiecePairPieceTable Table;
28 static PtypeEvalTable Piece_Value;
29 };
30
34 class PiecePairPieceEval
35 : public PiecePairWithStand<PiecePairPieceTable>
36 {
37 public:
38 typedef PiecePairWithStand<PiecePairPieceTable> base_t;
39 explicit PiecePairPieceEval(const SimpleState& state)
40 : base_t(state)
41 {
42 }
43 static int adjustableDimension() { return PTYPE_SIZE; }
44 static void resetWeights(const int *w);
45 };
46
47 } // namespace ppair
48 using ppair::PiecePairPieceTable;
49 using ppair::PiecePairPieceEval;
50 } // namespace eval
51 } // namespace osl
52
53
54 #endif /* EVAL_PPAIR_PIECEPAIRPIECEEVAL_H */
55 // ;;; Local Variables:
56 // ;;; mode:c++
57 // ;;; c-basic-offset:2
58 // ;;; coding:utf-8
59 // ;;; End: