STAR++ v0.2.2
C++ implementation of STAR voting
|
The Rank struct represents a relative position for a given standing that can be occupied by multiple candidates. More...
#include <star/rank.h>
Public Types | |
enum | Order { Ascending , Descending } |
Static Public Member Functions | |
static QList< Rank > | rankSort (const QMap< QString, int > &valueMap, Order order=Descending) |
Public Attributes | |
QSet< QString > | candidates |
int | value |
This struct is generally used within a list in order to present overall candidate rankings for different metrics.
enum Star::Rank::Order |
|
static |
Creates rankings of the candidates in the candidate-score map valueMap, sorted according to order.
QSet< QString > Star::Rank::candidates |
The candidates that are part of the rank.
int Star::Rank::value |
The value that defines the rank.