forked from Tzunami/Infoledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGroup.h
executable file
·60 lines (56 loc) · 1.54 KB
/
Group.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* Group.h
*
* Created on: Dec 3, 2015
* Author: tzunami
*/
#pragma once
#ifndef GROUP_H_
#define GROUP_H_
#include "Person.h"
namespace Infoledger {
/*************************************************************************************/
class Group: public ID, public People {
public:
// members
List<Data> data;
// constructors
Group();
Group(People *pl);
Group(People &pl);
Group(Person &p1, Person &p2);
Group(Person &p1, Person &p2, std::string n);
virtual ~Group();
// operators Person
Group &operator+(Person &p);
Group &operator-(Person &p);
void operator+=(Person &p);
void operator-=(Person &p);
// operators People Equal
Group &operator=(People &p);
Group &operator=(People *p);
// operators People
Group &operator+(People &p);
Group &operator-(People &p);
void operator+=(People &p);
void operator+=(People *p);
void operator-=(People &p);
void operator-=(People *p);
// operators Group
Group &operator=(Group &g);
Group &operator=(Group *g);
Group &operator+(Group &g);
Group &operator-(Group &g) ;
void operator+=(Group &g);
void operator+=(Group *g);
void operator-=(Group &g);
void operator-=(Group *g);
//operators Group
Group &operator/(Group &g);
Group &operator/(Group *g);
Group &operator*(Group &g);
Group &operator*(Group *g);
};
/********************************************/
} /* namespace Infoledger */
#endif /* GROUP_H_ */