-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathEdges.h
48 lines (27 loc) · 1015 Bytes
/
Edges.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
#ifndef GCALC_EDGES_H
#define GCALC_EDGES_H
#include <iostream>
#include <utility>
#include <set>
class Edges {
private:
std::set<std::pair<std::string,std::string>> edges;
public:
Edges(std::set<std::pair<std::string,std::string>> edges);
Edges();
Edges( const Edges &edges);
Edges &operator=(const Edges &edges);
void addEdge(std::pair<std::string,std::string> edge);
void deleteEdge(std::pair<std::string,std::string> edge);
bool isContain(std::pair<std::string, std::string> edge) const ;
std::set<std::pair<std::string,std::string>>::iterator begin() const;
std::set<std::pair<std::string,std::string>>::iterator end() const;
void clearEdges();
bool checkIfEmpty();
int size();
};
Edges operator+(const Edges &edges1, const Edges &edges2);
Edges operator^(const Edges &edges1,const Edges &edges2);
Edges operator-(const Edges &edges1,const Edges &edges2);
Edges operator*(const Edges &edges1,const Edges &edges2);
#endif //GCALC_EDGES_H