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
10
namespace
Star
11
{
12
13
struct
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
Star
The Star namespace is the main namespace through which all functionality of the STAR++ library is acc...
Definition
calculator.cpp:21
Star::Rank
The Rank struct represents a relative position for a given standing that can be occupied by multiple ...
Definition
rank.h:14
Star::Rank::value
int value
Definition
rank.h:17
Star::Rank::Order
Order
Definition
rank.h:15
Star::Rank::Ascending
@ Ascending
Definition
rank.h:15
Star::Rank::candidates
QSet< QString > candidates
Definition
rank.h:18
lib
include
star
rank.h
Generated by
1.9.8