Let material probing to access per-thread table

It is up to material (and pawn) table look up
code to know where the per-thread tables are,
so change API to reflect this.

Also some comment fixing while there

No functional change.
This commit is contained in:
Marco Costalba
2014-12-30 10:31:50 +01:00
parent 19b8249ff4
commit 91cc82aa25
10 changed files with 66 additions and 66 deletions

View File

@@ -76,7 +76,7 @@ template<typename T>
struct EndgameBase {
virtual ~EndgameBase() {}
virtual Color color() const = 0;
virtual Color strong_side() const = 0;
virtual T operator()(const Position&) const = 0;
};
@@ -85,7 +85,7 @@ template<EndgameType E, typename T = typename eg_fun<(E > SCALE_FUNS)>::type>
struct Endgame : public EndgameBase<T> {
explicit Endgame(Color c) : strongSide(c), weakSide(~c) {}
Color color() const { return strongSide; }
Color strong_side() const { return strongSide; }
T operator()(const Position&) const;
private: