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

class SearchTournamens - Search tournaments in a database More...

#include <searchtournaments.h>

Public Types

typedef std::vector< Tourney >::const_iterator Iter
 

Public Member Functions

 SearchTournaments (const scidBaseT *dbase, const HFilter &filter)
 
Iter begin () const
 
Iter end () const
 
void filterByAvgElo (const StrRange &range)
 
void filterByNPlayers (const StrRange &range)
 
void filterByNGames (const StrRange &range)
 
void filterByPlayer (const char *name)
 
bool sort (const char *criteria, size_t max)
 

Detailed Description

class SearchTournamens - Search tournaments in a database

This class group games in tournaments. Games with the same EventId, SiteId and EventDate are considered a tournament. A game with EventDate == 0 is also considered part of a tournament if its date is greater than or equal to the EventDate of the other games. It's also possible to filter the results further by:

Dependencies: Indexes of NameBase are used for the names of the event, site and player and they must be valid and unchanged throughout all the life of the SearchTournament object.

Definition at line 165 of file searchtournaments.h.

Member Typedef Documentation

◆ Iter

typedef std::vector<Tourney>::const_iterator SearchTournaments::Iter

Definition at line 213 of file searchtournaments.h.

Constructor & Destructor Documentation

◆ SearchTournaments()

SearchTournaments::SearchTournaments ( const scidBaseT dbase,
const HFilter filter 
)
inline

Definition at line 171 of file searchtournaments.h.

Member Function Documentation

◆ begin()

Iter SearchTournaments::begin ( ) const
inline

Definition at line 214 of file searchtournaments.h.

◆ end()

Iter SearchTournaments::end ( ) const
inline

Definition at line 215 of file searchtournaments.h.

◆ filterByAvgElo()

void SearchTournaments::filterByAvgElo ( const StrRange range)
inline

Definition at line 217 of file searchtournaments.h.

◆ filterByNGames()

void SearchTournaments::filterByNGames ( const StrRange range)
inline

Definition at line 231 of file searchtournaments.h.

◆ filterByNPlayers()

void SearchTournaments::filterByNPlayers ( const StrRange range)
inline

Definition at line 224 of file searchtournaments.h.

◆ filterByPlayer()

void SearchTournaments::filterByPlayer ( const char *  name)
inline

Definition at line 238 of file searchtournaments.h.

◆ sort()

bool SearchTournaments::sort ( const char *  criteria,
size_t  max 
)
inline

Definition at line 305 of file searchtournaments.h.


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