-private:
- unsigned size;
- MaterialInfo* entries;
- EndgameFunctions* funcs;
-};
-
-
-////
-//// Inline functions
-////
-
-/// MaterialInfo::mg_value and MaterialInfo::eg_value simply returns the
-/// material balance evaluation for the middle game and the endgame.
-
-inline Value MaterialInfo::mg_value() const {
-
- return Value(mgValue);
-}
-
-inline Value MaterialInfo::eg_value() const {
-
- return Value(egValue);
-}
-
-
-/// MaterialInfo::clear() resets a MaterialInfo object to an empty state,
-/// with all slots at their default values.
-
-inline void MaterialInfo::clear() {
-
- mgValue = egValue = 0;
- factor[WHITE] = factor[BLACK] = uint8_t(SCALE_FACTOR_NORMAL);
- spaceWeight = 0;
- evaluationFunction = NULL;
- scalingFunction[WHITE] = scalingFunction[BLACK] = NULL;
-}
-
-
-/// MaterialInfo::scale_factor takes a position and a color as input, and
-/// returns a scale factor for the given color. We have to provide the
+/// Material::scale_factor takes a position and a color as input, and
+/// returns a scale factor for the given color. We have to provide the