Scid  4.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
SearchPos Class Reference

Search for an exact position (same material in the same squares). More...

#include <searchpos.h>

Public Member Functions

 SearchPos (const Position *pos)
 
void disableOptStoredLine ()
 Disable the stored lines optimization. More...
 
void disableOptHpSig ()
 Disable the home pawn optimization. More...
 
int index_match (const IndexEntry &ie) const
 Search for the position using the optimizations in a game's index. More...
 
bool setFilter (scidBaseT *base, HFilter &filter, const Progress &progress)
 Reset filter to include only the games that reached the searched position in their main line. More...
 

Detailed Description

Search for an exact position (same material in the same squares).

Definition at line 67 of file searchpos.h.

Constructor & Destructor Documentation

◆ SearchPos()

SearchPos::SearchPos ( const Position pos)
inlineexplicit

Definition at line 76 of file searchpos.h.

Member Function Documentation

◆ disableOptHpSig()

void SearchPos::disableOptHpSig ( )
inline

Disable the home pawn optimization.

Definition at line 99 of file searchpos.h.

◆ disableOptStoredLine()

void SearchPos::disableOptStoredLine ( )
inline

Disable the stored lines optimization.

Definition at line 96 of file searchpos.h.

◆ index_match()

int SearchPos::index_match ( const IndexEntry ie) const
inline

Search for the position using the optimizations in a game's index.

Returns
-2 : the game cannot reach the searched position -1 : the game can reach the searched position >=0: the game reach the searched position at the returned ply

Definition at line 106 of file searchpos.h.

◆ setFilter()

bool SearchPos::setFilter ( scidBaseT base,
HFilter filter,
const Progress progress 
)
inline

Reset filter to include only the games that reached the searched position in their main line.

Definition at line 125 of file searchpos.h.


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