/usr/include/osl/eval/ppair/piecePairPieceEval.h is in libosl-dev 0.8.0-1.4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | /* piecePairPieceEval.h
*/
#ifndef EVAL_PPAIR_PIECEPAIRPIECEEVAL_H
#define EVAL_PPAIR_PIECEPAIRPIECEEVAL_H
#include "osl/eval/ppair/piecePairWithStand.h"
#include "osl/eval/ppair/piecePairTable.h"
namespace osl
{
namespace eval
{
namespace ppair
{
class PiecePairPieceTable : public PiecePairTable<signed short>
{
public:
~PiecePairPieceTable();
/**
* @return successful load
* @param filename PiecePairRawTable 用のファイル
*/
bool setUp(const char *filename) const;
/** user must initialize this before use */
static PiecePairPieceTable Table;
static PtypeEvalTable Piece_Value;
};
/**
* 評価関数: PiecePairRawEval + PieceEval の点数を加えたもの
*/
class PiecePairPieceEval
: public PiecePairWithStand<PiecePairPieceTable>
{
public:
typedef PiecePairWithStand<PiecePairPieceTable> base_t;
explicit PiecePairPieceEval(const SimpleState& state)
: base_t(state)
{
}
static int adjustableDimension() { return PTYPE_SIZE; }
static void resetWeights(const int *w);
};
} // namespace ppair
using ppair::PiecePairPieceTable;
using ppair::PiecePairPieceEval;
} // namespace eval
} // namespace osl
#endif /* EVAL_PPAIR_PIECEPAIRPIECEEVAL_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; coding:utf-8
// ;;; End:
|