STAR++ v0.2.2
C++ implementation of STAR voting
Loading...
Searching...
No Matches
rank.h
1#ifndef RANK_H
2#define RANK_H
3
4// Shared Library Support
5#include "star/star_base_export.h"
6
7// Qt Includes
8#include <QSet>
9
10namespace Star
11{
12
13struct STAR_BASE_EXPORT Rank
14{
15 enum Order { Ascending, Descending };
16
17 int value;
18 QSet<QString> candidates;
19
20 static QList<Rank> rankSort(const QMap<QString, int>& valueMap, Order order = Descending);
21};
22
23}
24
25#endif // RANK_H
The Star namespace is the main namespace through which all functionality of the STAR++ library is acc...
Definition calculator.cpp:21
The Rank struct represents a relative position for a given standing that can be occupied by multiple ...
Definition rank.h:14
int value
Definition rank.h:17
Order
Definition rank.h:15
@ Ascending
Definition rank.h:15
QSet< QString > candidates
Definition rank.h:18