Scid  4.6.5
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 185 of file searchtournaments.h.

Member Typedef Documentation

◆ Iter

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

Definition at line 193 of file searchtournaments.h.

Constructor & Destructor Documentation

◆ SearchTournaments()

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

Definition at line 315 of file searchtournaments.h.

Member Function Documentation

◆ begin()

Iter SearchTournaments::begin ( ) const

Definition at line 194 of file searchtournaments.h.

◆ end()

Iter SearchTournaments::end ( ) const

Definition at line 195 of file searchtournaments.h.

◆ filterByAvgElo()

void SearchTournaments::filterByAvgElo ( const StrRange range)

Definition at line 197 of file searchtournaments.h.

◆ filterByNGames()

void SearchTournaments::filterByNGames ( const StrRange range)

Definition at line 211 of file searchtournaments.h.

◆ filterByNPlayers()

void SearchTournaments::filterByNPlayers ( const StrRange range)

Definition at line 204 of file searchtournaments.h.

◆ filterByPlayer()

void SearchTournaments::filterByPlayer ( const char *  name)

Definition at line 218 of file searchtournaments.h.

◆ sort()

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

Definition at line 337 of file searchtournaments.h.

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