|
static std::tuple< key_t, int > | readline (std::ifstream &file, const bool with_distances, const bool is_8ply) |
|
static std::vector< std::tuple< key_t, value_t > > | readBook (const std::filesystem::path &filename, const bool with_distances=true, const bool is_8ply=false) |
|
template<typename T> |
static int | sign (T value) |
|
|
static constexpr auto | NONE_VALUE = std::numeric_limits<value_t>::min() |
|
Definition at line 17 of file OpeningBook.h.
◆ OpeningBook() [1/2]
BitBully::OpeningBook::OpeningBook |
( |
const std::filesystem::path & | bookPath, |
|
|
const bool | is_8ply, |
|
|
const bool | with_distances ) |
|
inlineexplicit |
◆ OpeningBook() [2/2]
BitBully::OpeningBook::OpeningBook |
( |
const std::filesystem::path & | bookPath | ) |
|
|
inlineexplicit |
◆ convertValue()
int BitBully::OpeningBook::convertValue |
( |
const int | value, |
|
|
const Board & | b ) const |
|
inline |
◆ getBoardValue()
int BitBully::OpeningBook::getBoardValue |
( |
const Board & | b | ) |
const |
|
inlinenodiscard |
◆ getBook()
auto BitBully::OpeningBook::getBook |
( |
| ) |
const |
|
inline |
◆ getBookSize()
auto BitBully::OpeningBook::getBookSize |
( |
| ) |
const |
|
inlinenodiscard |
◆ getEntry()
auto BitBully::OpeningBook::getEntry |
( |
const size_t | entryIdx | ) |
const |
|
inlinenodiscard |
◆ getNPly()
int BitBully::OpeningBook::getNPly |
( |
| ) |
const |
|
inline |
◆ init()
void BitBully::OpeningBook::init |
( |
const std::filesystem::path & | bookPath, |
|
|
const bool | is_8ply, |
|
|
const bool | with_distances ) |
|
inline |
◆ isInBook()
bool BitBully::OpeningBook::isInBook |
( |
const Board & | b | ) |
const |
|
inlinenodiscard |
◆ readBook()
static std::vector< std::tuple< key_t, value_t > > BitBully::OpeningBook::readBook |
( |
const std::filesystem::path & | filename, |
|
|
const bool | with_distances = true, |
|
|
const bool | is_8ply = false ) |
|
inlinestatic |
◆ readline()
static std::tuple< key_t, int > BitBully::OpeningBook::readline |
( |
std::ifstream & | file, |
|
|
const bool | with_distances, |
|
|
const bool | is_8ply ) |
|
inlinestatic |
◆ sign()
template<typename T>
static int BitBully::OpeningBook::sign |
( |
T | value | ) |
|
|
inlinestatic |
◆ NONE_VALUE
auto BitBully::OpeningBook::NONE_VALUE = std::numeric_limits<value_t>::min() |
|
staticconstexpr |
The documentation for this class was generated from the following file: