|
libenigma
Enigma machine utility library
|
Functions | |
| int | enigma_score_print (const EnigmaScoreList *list) |
| Print the scores in an EnigmaScoreList. | |
| int | enigma_score_list_sort (EnigmaScoreList *list) |
| Sort an array of EnigmaScore by score in descending order. | |
| Enigma * | enigma_score_get_enigma (EnigmaScore *score) |
| Get the enigma field in the given EnigmaScore. | |
| float | enigma_score_get_score (EnigmaScore *score) |
| Get the score field in the given EnigmaScore. | |
| int | enigma_score_get_flags (EnigmaScore *score) |
| Get the flags field in the given EnigmaScore. | |
| int | enigma_score_set_enigma (EnigmaScore *score, Enigma *enigma) |
| Set the enigma field in the given EnigmaScore. | |
| int | enigma_score_set_score (EnigmaScore *score, float value) |
| Set the score field in the given EnigmaScore. | |
| int | enigma_score_set_flags (EnigmaScore *score, int flags) |
| Set the flags field in the given EnigmaScore. | |
| EnigmaScore * | enigma_score_list_get_scores (EnigmaScoreList *list) |
| Get the scores array from the given EnigmaScoreList. | |
| EnigmaScore * | enigma_score_list_get_score (EnigmaScoreList *list, int index) |
| Get the score at the given index from the given EnigmaScoreList. | |
| int | enigma_score_list_get_score_count (EnigmaScoreList *list) |
| Get the score count from the given EnigmaScoreList. | |
| int | enigma_score_list_get_max_scores (EnigmaScoreList *list) |
| Get the maximum number of scores from the given EnigmaScoreList. | |
| int | enigma_score_list_set_score (EnigmaScoreList *list, int index, EnigmaScore *score) |
| Set the score at the given index in the given EnigmaScoreList. | |
| int | enigma_score_list_set_score_count (EnigmaScoreList *list, int count) |
| Set the score count in the given EnigmaScoreList. | |
| int | enigma_score_list_set_max_scores (EnigmaScoreList *list, int max) |
| Set the maximum number of scores in the given EnigmaScoreList. | |
This file contains functions related to plaintext scoring.
| Enigma * enigma_score_get_enigma | ( | EnigmaScore * | score | ) |
Get the enigma field in the given EnigmaScore.
| score | The EnigmaScore instance |
| int enigma_score_get_flags | ( | EnigmaScore * | score | ) |
Get the flags field in the given EnigmaScore.
| score | The EnigmaScore instance |
| float enigma_score_get_score | ( | EnigmaScore * | score | ) |
Get the score field in the given EnigmaScore.
| score | The EnigmaScore instance |
| int enigma_score_list_get_max_scores | ( | EnigmaScoreList * | list | ) |
Get the maximum number of scores from the given EnigmaScoreList.
| list | The EnigmaScoreList instance |
| EnigmaScore * enigma_score_list_get_score | ( | EnigmaScoreList * | list, |
| int | index | ||
| ) |
Get the score at the given index from the given EnigmaScoreList.
| list | The EnigmaScoreList instance |
| index | The index of the score to get |
| int enigma_score_list_get_score_count | ( | EnigmaScoreList * | list | ) |
Get the score count from the given EnigmaScoreList.
| list | The EnigmaScoreList instance |
| EnigmaScore * enigma_score_list_get_scores | ( | EnigmaScoreList * | list | ) |
Get the scores array from the given EnigmaScoreList.
| list | The EnigmaScoreList instance |
| int enigma_score_list_set_max_scores | ( | EnigmaScoreList * | list, |
| int | max | ||
| ) |
Set the maximum number of scores in the given EnigmaScoreList.
| list | The EnigmaScoreList instance |
| max | The new maximum number of scores |
| int enigma_score_list_set_score | ( | EnigmaScoreList * | list, |
| int | index, | ||
| EnigmaScore * | score | ||
| ) |
Set the score at the given index in the given EnigmaScoreList.
| list | The EnigmaScoreList instance |
| index | The index of the score to set |
| score | The EnigmaScore instance to set |
| int enigma_score_list_set_score_count | ( | EnigmaScoreList * | list, |
| int | count | ||
| ) |
Set the score count in the given EnigmaScoreList.
| list | The EnigmaScoreList instance |
| count | The new score count |
| int enigma_score_list_sort | ( | EnigmaScoreList * | list | ) |
Sort an array of EnigmaScore by score in descending order.
| list | The array of EnigmaScore to sort. |
| int enigma_score_print | ( | const EnigmaScoreList * | list | ) |
Print the scores in an EnigmaScoreList.
| list | Pointer to the EnigmaScoreList structure. |
| int enigma_score_set_enigma | ( | EnigmaScore * | score, |
| Enigma * | enigma | ||
| ) |
Set the enigma field in the given EnigmaScore.
| score | The EnigmaScore instance |
| enigma | The Enigma instance to set |
| int enigma_score_set_flags | ( | EnigmaScore * | score, |
| int | flags | ||
| ) |
Set the flags field in the given EnigmaScore.
| score | The EnigmaScore instance |
| flags | The flags value to set |
| int enigma_score_set_score | ( | EnigmaScore * | score, |
| float | value | ||
| ) |
Set the score field in the given EnigmaScore.
| score | The EnigmaScore instance |
| value | The score value to set |