#include <karateka.h>


Public Member Functions | |
| Karateka & | with_name (const std::string &karateka_name) |
| Karateka & | with_name (std::string &&karateka_name) noexcept |
| Karateka & | with_surname (const std::string &karateka_surname) |
| Karateka & | with_surname (std::string &&karateka_surname) noexcept |
| Karateka & | with_birthdate (const Date &birthdate) |
| Karateka & | with_birthdate (Date &&birthdate) noexcept |
| Karateka & | with_birthdate (const std::string &birthdate_as_string) |
| Karateka & | from_dojo (const std::string &dojo_name) |
| Karateka & | from_dojo (std::string &&dojo_name) noexcept |
| Karateka & | with_grade (const std::string &grade_as_string) |
| Karateka & | with_grade (std::string &&grade_as_string) noexcept |
| void | set_startnumber (size_t start_number) |
| set_startnumber More... | |
| size_t | get_startnumber () const |
| Return the startnumber. More... | |
| void | add_kata_score (float score) final |
| Add a kata score for the current round. More... | |
| void | add_deduction (float deduction) final |
| Add a deduction, which is subtracted from the overall score. More... | |
| uint8_t | next_round () final |
| Move to next round. More... | |
| float | get_maximum_score_of_round (uint8_t round) const final |
| Return the maximum score of the given round. More... | |
| float | get_minimum_score_of_round (uint8_t round) const final |
| Return the minimum score of the given round. More... | |
| float | get_overall_score_of_round (uint8_t round) const final |
| Return the overall score of the given round. More... | |
| float | get_maximum_score_of_current_round () const final |
| Return the maximum score of the current round. More... | |
| float | get_minimum_score_of_current_round () const final |
| Return the minimum score of the current round. More... | |
| float | get_overall_score_of_current_round () const final |
| Return the overall score of the current round. More... | |
| KataRoundScores::ScoreVectorType | get_scores (uint8_t round) const |
| Return all scores of a round. More... | |
| float | get_deduction (uint8_t round) const |
| std::string | name () const |
| Return the name of the Karateka. More... | |
| std::string | surname () const |
| Return the surname of the Karateka. More... | |
| std::string | date_of_birth_as_string () const |
| Return the date of birth of the Karateka. More... | |
| Date | date_of_birth () const |
| Return a date of birth string of the Karateka. More... | |
| std::string | dojo () const |
| Return the dojo the Karateka belongs to. More... | |
| std::string | grade () const |
| Return the rank of the Karateka. More... | |
Public Member Functions inherited from TournamentRunner::IKataPerformer | |
| IKataPerformer (const IKataPerformer &)=default | |
| IKataPerformer (IKataPerformer &&)=default | |
| IKataPerformer & | operator= (const IKataPerformer &)=default |
| IKataPerformer & | operator= (IKataPerformer &&)=default |
Friends | |
| class | boost::serialization::access |
The Karateka class.
A karateka is a person practicing karate and participating at a tournament.
|
finalvirtual |
Add a deduction, which is subtracted from the overall score.
| deduction | Deduction value |
| std::length_error | exception if more than number_of_kata_scores_per_round scores are added |
Implements TournamentRunner::IKataPerformer.

|
finalvirtual |
Add a kata score for the current round.
| score | The score given |
| std::length_error | exception if more than number_of_kata_scores_per_round scores are added |
Implements TournamentRunner::IKataPerformer.

|
inline |
Return a date of birth string of the Karateka.
|
inline |
Return the date of birth of the Karateka.

|
inline |
|
finalvirtual |
Return the maximum score of the current round.
Implements TournamentRunner::IKataPerformer.
|
finalvirtual |
Return the maximum score of the given round.
| round | The round we want the maximum score from |
Implements TournamentRunner::IKataPerformer.
|
finalvirtual |
Return the minimum score of the current round.
Implements TournamentRunner::IKataPerformer.
|
finalvirtual |
Return the minimum score of the given round.
| round | The round we want the minimum score from |
Implements TournamentRunner::IKataPerformer.
|
finalvirtual |
Return the overall score of the current round.
Implements TournamentRunner::IKataPerformer.
|
finalvirtual |
Return the overall score of the given round.
| round | The round we want the overall score from |
Implements TournamentRunner::IKataPerformer.
| KataRoundScores::ScoreVectorType TournamentRunner::Karateka::get_scores | ( | uint8_t | round | ) | const |
Return all scores of a round.
| round | Which round ? |
|
inline |
Return the startnumber.

|
inline |
Return the rank of the Karateka.
|
inline |
Return the name of the Karateka.

|
finalvirtual |
Move to next round.
| std::length_error | exception if we try to move to a round larger than max_number_of_kata_rounds |
Implements TournamentRunner::IKataPerformer.

|
inline |
set_startnumber
| start_number |

|
inline |
Return the surname of the Karateka.

1.8.6