The Tournament class is the starting point for the tournament management.
More...
#include <tournament.h>
|
|
using | RankAnnotatedParticipant = std::pair< size_t, Karateka > |
| |
|
|
static constexpr auto | rank_annotated_participant_rank_idx = 0u |
| |
|
static constexpr auto | rank_annotated_participant_karateka_idx = 1u |
| |
|
|
class | boost::serialization::access |
| |
The Tournament class is the starting point for the tournament management.
| void TournamentRunner::Tournament::add_participant |
( |
const Karateka & |
participant | ) |
|
Register a participant to the tournament.
- Parameters
-
| Date TournamentRunner::Tournament::date |
( |
| ) |
const |
|
inline |
Return the date the tournament is held as Date.
- Returns
- Tournament date
| std::string TournamentRunner::Tournament::date_as_string |
( |
| ) |
const |
Return the date the tournament is held as ISO 8601 extended format string (CCYY-MM-DD)
- Returns
- Tournament date as ISO 8601 extended format string (CCYY-MM-DD)
| std::vector< Tournament::RankAnnotatedParticipant > TournamentRunner::Tournament::get_anotated_ranked_list_of_participants |
( |
| ) |
const |
Return a ranked list of participants anotated with the actual rank.
- Returns
- list of the (rank, participants) tuples ranked by the scores.
| uint8_t TournamentRunner::Tournament::get_current_round |
( |
| ) |
const |
|
inline |
Return the current active round.
- Returns
- current round
| Karateka & TournamentRunner::Tournament::get_participant |
( |
size_t |
start_number | ) |
|
|
inline |
Return the participant with the given startnumber.
- Parameters
-
| start_number | Start number given to the karateka |
- Returns
- Karateka with the given Start number
| std::vector< Karateka > TournamentRunner::Tournament::get_ranked_list_of_participants |
( |
| ) |
const |
Return a ranked list of participants. The highest ranked comes first.
- Returns
- list of the participants ranked by the scores
| std::vector< size_t > TournamentRunner::Tournament::get_startlist_for_next_kata_round |
( |
size_t |
no_of_participants_for_round | ) |
const |
Return the startlist for the next kata round.
- Parameters
-
| no_of_participants_for_round | Number of participants which can be nominated for the next round |
- Returns
- The startlist for the next kata round.
- Note
- The ordering is backwards, i.e. the best scored participant starts last
| std::string TournamentRunner::Tournament::location |
( |
| ) |
const |
|
inline |
| std::string TournamentRunner::Tournament::name |
( |
| ) |
const |
|
inline |
| size_t TournamentRunner::Tournament::number_of_participants |
( |
| ) |
const |
|
inline |
Return the number of registred participants.
- Returns
- The number of registred participants
| void TournamentRunner::Tournament::remove_participant |
( |
size_t |
start_number | ) |
|
remove_participant
- Parameters
-
| uint8_t TournamentRunner::Tournament::start_next_kata_round |
( |
| ) |
|
Start the next kata round.
- Returns
- Return the round number of the started round
| void TournamentRunner::Tournament::update_data |
( |
const TournamentData & |
data | ) |
|
|
inline |
Update the tournament data.
- Parameters
-
The documentation for this class was generated from the following files: