-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbouquet.h
More file actions
35 lines (32 loc) · 747 Bytes
/
bouquet.h
File metadata and controls
35 lines (32 loc) · 747 Bytes
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
#ifndef BOUQUET_H
#define BOUQUET_H
#include "flour.h"
#include <QString>
class Iterator;
class Bouquet
{
struct Node{
Flour* info;
Node *next= nullptr, *prev= nullptr;
};
private:
Node *head, *tail;
public:
friend class Iterator;
Iterator begin() const;
Iterator end() const;
Bouquet();
Bouquet(const Bouquet &Bouquet);
Bouquet(QJsonObject jsonBouquet);
void deleteElement(Flour& info);
QJsonObject getJsonInfo() const;
void clearBouquet();
void add(Flour& info);
int len() const;
int price() const;
bool operator==(Bouquet bouquet) const;
bool operator!=(Bouquet bouquet) const;
Bouquet operator+(Bouquet bouquet);
~Bouquet();
};
#endif // BOUQUET_H