BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
ben_bot::eval::NullTracer Struct Referencefinal

#include <libbenbot/eval/Trace.hpp>

Static Public Member Functions

static constexpr void add (const Term term, const Color side, const int count, const size_t index=0uz) noexcept
static constexpr void add_base (const Color side, const TaperedScore &part) noexcept

Static Public Attributes

static constexpr bool ENABLED = false

Detailed Description

The tracer that the engine's eval uses. It records nothing, and compiles away.

Definition at line 85 of file Trace.hpp.

Member Function Documentation

◆ add()

constexpr void ben_bot::eval::NullTracer::add ( const Term term,
const Color side,
const int count,
const size_t index = 0uz )
inlinestaticconstexprnoexcept

Called each time a term applies count times for side.

Definition at line 90 of file Trace.hpp.

◆ add_base()

constexpr void ben_bot::eval::NullTracer::add_base ( const Color side,
const TaperedScore & part )
inlinestaticconstexprnoexcept

Called with the parts of the eval that aren't traced by weight, from side's point of view.

Definition at line 97 of file Trace.hpp.

Member Data Documentation

◆ ENABLED

bool ben_bot::eval::NullTracer::ENABLED = false
staticconstexpr

True if this tracer records anything.

Definition at line 87 of file Trace.hpp.


The documentation for this struct was generated from the following file: