[go: up one dir, main page]

Menu

[r1]: / base / estrazione.cpp  Maximize  Restore  History

Download this file

38 lines (28 with data), 1.1 kB

 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
#include "estrazione.h"
Estrazione::Estrazione(QDate _data) { // costruttore a 1 parametro
data = _data;
}
void Estrazione::setEstrazioneRuota(Lotto::Ruota _ruota, QVector<int> _numeri) { // inserisce nell'estrazione i numueri di una ruota
ruote[_ruota] = _numeri;
}
bool Estrazione::operator<(Estrazione _estrazione) const {
return this->data < _estrazione.data;
}
bool Estrazione::operator<=(Estrazione _estrazione) const {
return this->data <= _estrazione.data;
}
bool Estrazione::operator>(Estrazione _estrazione) const {
return this->data > _estrazione.data;
}
bool Estrazione::operator>=(Estrazione _estrazione) const {
return this->data >= _estrazione.data;
}
bool Estrazione::operator==(Estrazione _estrazione) const {
return this->data == _estrazione.data;
}
bool Estrazione::operator!=(Estrazione _estrazione) const {
return this->data != _estrazione.data;
}
EstrazioneRuota Estrazione::getEstrazioneRuota(Lotto::Ruota _ruota) const { // restituisce i numeri di una ruota
return ruote[_ruota];
}