#include <index.h>
Definition at line 58 of file index.h.
◆ Index() [1/2]
◆ Index() [2/2]
Index::Index |
( |
const Index & |
| ) |
|
◆ ~Index()
◆ calcNameFreq()
Counts how many times every names contained in nb is used.
- Parameters
-
- Returns
- an array of std::vectors containing the count of each name.
Definition at line 117 of file index.h.
◆ Close()
◆ copyHeaderInfo()
Header setter functions.
Definition at line 151 of file index.h.
◆ Create()
errorT Index::Create |
( |
const char * |
filename | ) |
|
◆ FetchEntry()
FetchEntry() - return a modifiable pointer to a game's IndexEntry.
The pointer returned by this function allow to modify the IndexEntry informations of a game. If modified, the IndexEntry object must be passed to WriteEntry() to write the changes to the disks. This functions is very error prone. For example: IndexEntry* ie = FetchEntry(0); ie->SetWhiteName(nb, "New player with white"); oops(); // the function oops() may call GetEntry(0) and get a messy object. ie->SetBlackName(nb, "New player with black");
A safer alternative is to create a temporary copy of the IndexEntry object returned by GetEntry() and then write all the changes in a single step
Definition at line 204 of file index.h.
◆ flush()
◆ GetAutoLoad()
◆ GetBadNameIdCount()
int Index::GetBadNameIdCount |
( |
| ) |
const |
|
inline |
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.
Definition at line 109 of file index.h.
◆ GetCustomFlagDesc()
const char* Index::GetCustomFlagDesc |
( |
byte |
c | ) |
const |
|
inline |
◆ GetDescription()
const char* Index::GetDescription |
( |
| ) |
const |
|
inline |
◆ GetEntry()
◆ GetNumGames()
Header getter functions.
Definition at line 136 of file index.h.
◆ GetType()
uint Index::GetType |
( |
| ) |
const |
|
inline |
◆ GetVersion()
◆ Open()
◆ operator=()
◆ SetAutoLoad()
◆ SetCustomFlagDesc()
errorT Index::SetCustomFlagDesc |
( |
byte |
c, |
|
|
const char * |
str |
|
) |
| |
|
inline |
◆ SetDescription()
errorT Index::SetDescription |
( |
const char * |
str | ) |
|
|
inline |
◆ SetType()
◆ WriteEntry()
◆ CodecSCID4
◆ autoLoad
◆ baseType
◆ customFlagDesc
◆ description
◆ dirty_
◆ numGames
◆ version
The documentation for this class was generated from the following files: