X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.h;h=e41044091566050567d413cb2d5888dba6585538;hp=0e7ca61d49fbc7de10397608bbe944baf2b1a08f;hb=29076043e073c3d6e3b90b0809afc2a0af57e5e1;hpb=fa2478a81f42648aa3382d60280e01adb0c4536f diff --git a/src/pawns.h b/src/pawns.h index 0e7ca61d..e4104409 100644 --- a/src/pawns.h +++ b/src/pawns.h @@ -27,8 +27,10 @@ #include "bitboard.h" #include "position.h" +#include "tt.h" #include "value.h" + //// //// Types //// @@ -69,26 +71,21 @@ private: Score kingShelters[2]; }; -/// The PawnInfoTable class represents a pawn hash table. It is basically -/// just an array of PawnInfo objects and a few methods for accessing these -/// objects. The most important method is get_pawn_info, which looks up a -/// position in the table and returns a pointer to a PawnInfo object. -class PawnInfoTable { +/// The PawnInfoTable class represents a pawn hash table. The most important +/// method is get_pawn_info, which returns a pointer to a PawnInfo object. + +class PawnInfoTable : public SimpleHash { enum SideType { KingSide, QueenSide }; public: - PawnInfoTable(); - ~PawnInfoTable(); PawnInfo* get_pawn_info(const Position& pos) const; void prefetch(Key key) const; private: template Score evaluate_pawns(const Position& pos, Bitboard ourPawns, Bitboard theirPawns, PawnInfo* pi) const; - - PawnInfo* entries; };