-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVertex.h
53 lines (28 loc) · 964 Bytes
/
Vertex.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
#ifndef GCALC_VERTEX_H
#define GCALC_VERTEX_H
#include <iostream>
#include <set>
#include "Exeptions.h"
class Vertex {
private:
std::set<std::string> vertexes;
public:
Vertex(std::set<std::string> vertexes);
Vertex();
Vertex( const Vertex &vertex);
Vertex &operator=(const Vertex &vertex);
void addVertex(std::string vertex);
void deleteVertex(std::string vertex);
bool isContain(std::string vertex) const;
std::set<std::string>::iterator begin() const;
std::set<std::string>::iterator end() const;
void clearVertexes();
bool checkIfEmpty();
static bool checkVertexName(std::string vertex);
int size();
};
Vertex operator+(const Vertex &vertex1, const Vertex &vertex2);
Vertex operator^(const Vertex &vertex1,const Vertex &vertex2);
Vertex operator-(const Vertex &vertex1,const Vertex &vertex2);
Vertex operator*(const Vertex &vertex1,const Vertex &vertex2);
#endif //GCALC_VERTEX_H