|
|
scid::core::errorT | open (std::string_view dbType, fileModeT fMode, const char *filename, const Progress &progress={}) |
| |
|
void | Close () |
| |
|
std::string | getFileName () const |
| |
|
bool | isOpen () const |
| |
|
bool | isReadOnly () const |
| |
|
gamenumT | numGames () const |
| |
|
std::vector< std::pair< const char *, std::string > > | getExtraInfo () const |
| | Returns a vector of tag pairs containing extra information about the database (type, description, autoload, etc..)
|
| |
|
scid::core::errorT | setExtraInfo (const char *tagname, const char *new_value) |
| | Store an extra information about the database (type, description, etc..)
|
| |
|
const IndexEntry * | getIndexEntry (gamenumT g) const |
| |
|
const IndexEntry * | getIndexEntry_bounds (gamenumT g) const |
| |
|
GameInfo | gameInfo (gamenumT g) const |
| |
|
std::optional< GameInfo > | gameInfoBounds (gamenumT g) const |
| |
|
scid::core::errorT | updateGameInfo (gamenumT g, const GameInfoUpdate &update) |
| |
|
TagRoster | tagRoster (gamenumT gnum) const |
| |
|
TagRoster | tagRoster (IndexEntry const &ie) const |
| |
|
const NameBase * | getNameBase () const |
| |
|
scid::core::ratingT | peakElo (idNumberT playerID) const |
| | Return the highest elo of the player (in the database's games)
|
| |
|
scid::core::errorT | loadGame (const IndexEntry &ie, scid::core::Game &dest, char *scidFlags, std::size_t scidFlagsLen) const |
| |
|
scid::core::errorT | loadGame (gamenumT gNum, scid::core::Game &dest, char *scidFlags, std::size_t scidFlagsLen) const |
| |
|
scid::core::errorT | loadGameMovesOnly (gamenumT gNum, scid::core::Game &dest) const |
| |
|
scid::core::errorT | loadGameMovesOnly (const IndexEntry &ie, scid::core::Game &dest) const |
| |
|
scid::core::errorT | gameTags (gamenumT gNum, std::vector< std::pair< std::string, std::string > > &dest) const |
| |
|
scid::core::errorT | loadStandardTags (gamenumT gNum, scid::core::Game &dest, char *scidFlags, std::size_t scidFlagsLen) const |
| |
|
scid::core::errorT | gameTags (const IndexEntry &ie, std::vector< std::pair< std::string, std::string > > &dest) const |
| |
|
std::vector< scid::core::FullMove > | mainlineMoves (gamenumT gNum, std::size_t maxPly) const |
| |
|
std::vector< scid::core::FullMove > | mainlineMoves (const IndexEntry *ie, std::size_t maxPly) const |
| |
|
std::string | moveSAN (gamenumT gNum, int plyToSkip, int count) const |
| |
|
std::string | moveSAN (const IndexEntry *ie, int plyToSkip, int count) const |
| |
|
std::pair< scid::core::errorT, size_t > | replaceGameDates (HFilter filter, const Progress &progress, scid::core::dateT oldDate, scid::core::dateT newDate) |
| |
|
std::pair< scid::core::errorT, size_t > | replaceGameEventDates (HFilter filter, const Progress &progress, scid::core::dateT oldDate, scid::core::dateT newDate) |
| |
|
std::pair< scid::core::errorT, size_t > | setPlayerRatings (HFilter filter, const Progress &progress, idNumberT player, scid::core::ratingT rating, scid::core::ratingTypeT ratingType) |
| |
|
template<typename TRatingResolver > |
| std::pair< scid::core::errorT, RatingUpdateStats > | updatePlayerRatings (HFilter filter, const Progress &progress, bool overwrite, bool saveRatings, TRatingResolver ratingFor) |
| |
|
scid::core::errorT | searchBoard (const IndexEntry &ie, scid::core::Game &game, scid::core::Position *pos, scid::core::Position *posFlip, bool useVariations, bool possibleMatch, bool possibleFlippedMatch, gameExactMatchT searchType, scid::core::uint &ply) const |
| |
|
scid::core::errorT | searchBoard (gamenumT gNum, scid::core::Game &game, scid::core::Position *pos, scid::core::Position *posFlip, bool useVariations, bool possibleMatch, bool possibleFlippedMatch, gameExactMatchT searchType, scid::core::uint &ply) const |
| |
|
bool | materialSearchMatch (const IndexEntry &ie, bool possibleMatch, bool possibleFlippedMatch, scid::core::byte *min, scid::core::byte *max, scid::core::byte *minFlipped, scid::core::byte *maxFlipped, patternT *patterns, std::size_t patternCount, patternT *flippedPatterns, std::size_t flippedPatternCount, int minPly, int maxPly, int matchLength, bool oppBishops, bool sameBishops, int minDiff, int maxDiff) const |
| |
|
bool | materialSearchMatch (gamenumT gNum, bool possibleMatch, bool possibleFlippedMatch, scid::core::byte *min, scid::core::byte *max, scid::core::byte *minFlipped, scid::core::byte *maxFlipped, patternT *patterns, std::size_t patternCount, patternT *flippedPatterns, std::size_t flippedPatternCount, int minPly, int maxPly, int matchLength, bool oppBishops, bool sameBishops, int minDiff, int maxDiff) const |
| |
|
bool | setPositionSearchFilter (const scid::core::Position &pos, HFilter &filter, const Progress &progress) const |
| |
|
scid::core::errorT | importGames (const scidBaseT *srcBase, const HFilter &filter, const Progress &progress) |
| |
|
scid::core::errorT | importGames (std::string_view dbType, const char *filename, const Progress &progress, std::string &errorMsg) |
| |
| scid::core::errorT | saveGame (scid::core::Game const &game, const char *scidFlags, gamenumT replacedGameId=INVALID_GAMEID) |
| | Add or replace a game into the database.
|
| |
|
scid::core::errorT | addGame (scid::core::Game const &game, const char *scidFlags) |
| |
|
bool | getFlag (scid::core::uint flag, scid::core::uint gNum) const |
| |
|
scid::core::errorT | setFlag (bool value, scid::core::uint flag, scid::core::uint gNum) |
| |
|
scid::core::errorT | setFlags (bool value, scid::core::uint flag, const HFilter &filter) |
| |
|
scid::core::errorT | invertFlag (scid::core::uint flag, scid::core::uint gNum) |
| |
|
scid::core::errorT | invertFlags (scid::core::uint flag, const HFilter &filter) |
| |
| std::string | newFilter () |
| | A Filter is a selection of games, usually obtained searching the database.
|
| |
|
void | deleteFilter (const char *filterId) |
| |
|
HFilter | getFilter (std::string_view filterId) const |
| |
|
HFilter | defaultFilter () const |
| |
|
gamenumT | defaultFilterCount () const |
| |
|
scid::core::byte | defaultFilterGet (gamenumT g) const |
| |
|
void | defaultFilterSet (gamenumT g, scid::core::byte value) |
| |
|
void | defaultFilterFill (scid::core::byte value) |
| |
|
uint64_t | cacheInvalidationToken () const |
| |
| std::string | composeFilter (std::string_view mainFilter, std::string_view maskFilter) const |
| | A composed filter is a special construct created combining two filters and includes only the games contained in both filters.
|
| |
| std::pair< std::string, std::string > | getFilterComponents (std::string_view filterId) const |
| | Get the components of a composed filter.
|
| |
|
const Stats & | getStats () const |
| |
|
std::vector< TreeNode > | getTreeStat (const HFilter &filter) const |
| |
|
scid::core::uint | getNameFreq (nameT nt, idNumberT id) |
| |
|
scid::core::errorT | getCompactStat (unsigned long long *n_deleted, unsigned long long *n_unused, unsigned long long *n_sparse, unsigned long long *n_badNameId) |
| |
|
scid::core::errorT | compact (const Progress &progress) |
| |
| bool | createSortCache (const char *criteria) |
| | Increment the reference count of a SortCache object matching criteria.
|
| |
| void | releaseSortCache (const char *criteria) |
| | Decrement the reference count of the SortCache object matching criteria.
|
| |
| size_t | listGames (const char *criteria, size_t start, size_t count, const HFilter &filter, gamenumT *destCont) |
| | Retrieve a list of ordered game indexes sorted by criteria.
|
| |
| size_t | sortedPosition (const char *criteria, const HFilter &filter, gamenumT gameId) |
| | Get the sorted position of a game.
|
| |
| template<typename TInitFunc , typename TMapFunc > |
| std::pair< scid::core::errorT, size_t > | transformNames (nameT nt, HFilter hfilter, const Progress &progress, const std::vector< std::string > &newNames, TInitFunc fnInit, TMapFunc getID) |
| | Transform the names of the games included in hfilter.
|
| |
| std::pair< scid::core::errorT, size_t > | stripGames (HFilter hfilter, const Progress &progress, std::vector< std::string_view > const &removeTags) |
| | Strip the games included in hfilter.
|
| |
|
std::unique_ptr< gamenumT[]> | extractDuplicates () |
| |
|
void | setDuplicates (std::unique_ptr< gamenumT[]> duplicates) |
| |
|
gamenumT | getDuplicates (gamenumT gNum) const |
| |