libscid 0.1.0
Chess applications made easy.
Loading...
Searching...
No Matches
scid::database::Index Class Reference

Public Member Functions

 Index (const Index &)=delete
 
Indexoperator= (const Index &)=delete
 
void Close ()
 
const IndexEntryGetEntry (gamenumT g) const
 
int GetBadNameIdCount () const
 GetBadNameIdCount() - return the number of invalid name handles.
 
void setBadNameIdCount (int count)
 
gamenumT GetNumGames () const
 Header getter functions.
 
void addEntry (const IndexEntry &ie)
 
void replaceEntry (const IndexEntry &ie, gamenumT replaced)
 

Member Function Documentation

◆ GetBadNameIdCount()

int scid::database::Index::GetBadNameIdCount ( ) const

GetBadNameIdCount() - return the number of invalid name handles.

To save space, avoiding duplicates, the index keep handles to strings stored in the namebase file. If one of the two files is corrupted, the index may have handles to strings that do not exists. This functions returns the number of invalid name handles.


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