/usr/include/osl/eval/concept.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 | #ifndef EVAL_CONCEPT_H
#define EVAL_CONCEPT_H
#include "osl/player.h"
#include <boost/concept_check.hpp>
namespace osl
{
namespace eval
{
/**
* 評価関数のinterface (人間用)
*/
class EvaluationFunction
{
public:
int getVal() const;
};
/**
* EvaluationFunction の制約.
* http://www.boost.org/libs/concept_check/concept_check.htm
*/
template <class T>
struct Concept
{
/**
* 制約.
* 他に, ApplyMoveOfTurn できる必要がある.
*/
void constraints()
{
const int value = eval.value();
boost::ignore_unused_variable_warning(value);
const int infty = T::infty();
boost::ignore_unused_variable_warning(infty);
const int capture_val = T::captureValue(ptypeo);
boost::ignore_unused_variable_warning(capture_val);
}
T eval;
PtypeO ptypeo;
};
} // namespace move_action
} // namespace osl
#endif /* EVAL_CONCEPT_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|