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

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

Definition at line 193 of file searchtournaments.h.

Constructor & Destructor Documentation

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

Definition at line 315 of file searchtournaments.h.

Member Function Documentation

Iter SearchTournaments::begin ( ) const
inline

Definition at line 194 of file searchtournaments.h.

Iter SearchTournaments::end ( ) const
inline

Definition at line 195 of file searchtournaments.h.

void SearchTournaments::filterByAvgElo ( const StrRange range)
inline

Definition at line 197 of file searchtournaments.h.

void SearchTournaments::filterByNGames ( const StrRange range)
inline

Definition at line 211 of file searchtournaments.h.

void SearchTournaments::filterByNPlayers ( const StrRange range)
inline

Definition at line 204 of file searchtournaments.h.

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

Definition at line 218 of file searchtournaments.h.

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

Definition at line 337 of file searchtournaments.h.


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