/usr/include/osl/eval/ppair/piecePairRawEval.h is in libosl-dev 0.6.0-3.3.
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 59 60 61 62 63 64 65 66 67 | /* piecePairRawEval.h
*/
#ifndef EVAL_PPAIR_PIECEPAIRRAWEVAL_H
#define EVAL_PPAIR_PIECEPAIRRAWEVAL_H
#include "osl/eval/ppair/piecePairEval.h"
#include "osl/eval/ppair/piecePairTable.h"
namespace osl
{
namespace eval
{
namespace ppair
{
class PiecePairRawTable : public PiecePairTable<signed char>
{
public:
PiecePairRawTable();
~PiecePairRawTable();
/**
* 一度だけ読み込む
* @return successful load
*/
bool setUp(const char *filename) const;
/**
* バイナリファイルから読み込む.
* r2246以降ではファイルイメージとメモリイメージとは,PiecePairIndex
* が違うので,変換が必要.
* @return successful load
*/
bool loadFromBinaryFile(const char *filename) const;
/**
* バイナリファイルに書き出す.
* r2246以降ではファイルイメージとメモリイメージとは,PiecePairIndex
* が違うので,変換が必要.
* @return successful load
*/
void writeInBinaryFile(const char *filename) const;
/** user must initialize this before use */
static const PiecePairRawTable Table;
};
/**
* 関係の価値は[-127,127]点の評価関数.
*/
class PiecePairRawEval : public PiecePairEval<PiecePairRawEval,PiecePairRawTable>
{
public:
typedef PiecePairEval<PiecePairRawEval,PiecePairRawTable> base_t;
explicit PiecePairRawEval(const SimpleState& state)
: base_t(state)
{
}
};
} // namespace ppair
using ppair::PiecePairRawTable;
using ppair::PiecePairRawEval;
} // namespace eval
} // namespace osl
#endif /* EVAL_PPAIR_PIECEPAIRRAWEVAL_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|