-public:
- TTEntry();
- TTEntry(Key k, Value v, ValueType t, Depth d, Move m, int generation);
- Key key() const;
- Depth depth() const;
- Move move() const;
- Value value() const;
- ValueType type() const;
- int generation() const;
-
-private:
- Key key_;
- uint32_t data;
- int16_t value_;
- int16_t depth_;
+private:
+ friend class TranspositionTable;
+
+ void save(uint32_t k, Value v, Bound b, Depth d, Move m, uint8_t g, Value ev) {
+
+ key32 = (uint32_t)k;
+ move16 = (uint16_t)m;
+ bound8 = (uint8_t)b;
+ generation8 = (uint8_t)g;
+ value16 = (int16_t)v;
+ depth16 = (int16_t)d;
+ evalValue = (int16_t)ev;
+ }
+
+ uint32_t key32;
+ uint16_t move16;
+ uint8_t bound8, generation8;
+ int16_t value16, depth16, evalValue;