-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcount.h
42 lines (33 loc) · 941 Bytes
/
count.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef COUNT_H
#define COUNT_H
#include "candidate.h"
#include "vote.h"
class Count
{
public:
Count();
Count(QList<Candidate *> c, QList<Candidate *> elec, QList<Candidate *> excl, QList<Vote *> v,
QList<Vote *> ntv, int countNum, QString distribInfo, int s);
int get_seats();
QList<Candidate *> get_candidates();
QList<Candidate *> get_elected();
QList<Candidate *> get_excluded();
QList<Candidate *> get_active();
QList<Vote *> get_validVotes();
QList<Vote *> get_nonTransferable_votes_not_effective();
int get_countNumber();
QString get_distribution_info();
private:
QList<Candidate *> candidates;
QList<Vote *> validVotes;
QList<Vote *> nonTransferableVotesNotEffective;
QList<Candidate *> elected;
QList<Candidate *> excluded;
int countNumber;
int seats;
int quota;
QString distributionInfo;
signals:
public slots:
};
#endif // COUNT_H