-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterface.hpp
More file actions
100 lines (85 loc) · 1.5 KB
/
Copy pathInterface.hpp
File metadata and controls
100 lines (85 loc) · 1.5 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#pragma once
#include <iostream>
#include "TreeList.h"
#include "Graph.h"
enum flow{none, starting, operating, done};
template<class T>
class Interface{
private:
class Node{
private:
T m_data;
friend class Interface;
};
Node* m_pRoot = nullptr;
flow state = none;
// public
public:
Interface();
Interface(T t_data);
T select(size_t t_choice);
T returnData();
//void state(flow t_state);
void changeState(flow t_state);
};
/**
*
*
*/
template<class T>
Interface<T>::Interface(){
//m_data;
}
/**
*
*
*/
template<class T>
Interface<T>::Interface(T t_data){
//m_data;
}
/**
*
*
*/
template<class T>
void Interface<T>::changeState(flow t_state){
switch(t_state){
case 0:{
break;
}
case 1:{
}
}
}
/*
template<class T>
T Interface<T>::select(size_t t_choide){
switch(t_choice){
case 1:
size_t treeChoice;
std::cout<<"What type of tree do you want to create?\n";
std::cout<<"1) Empty tree\n";
std::cout<<"2) Tree with root\n";
std::cout<<"3) Tree with leaves\n";
std::cin>>treeChoice;
switch(treeChoice){
case 1:
TreeList<int> tree_0;
return tree_0;
break;
case 2:
size_t rootData;
std::cout<<"Please type the integer value you want for the root:\n";
std::cin>>rootData;
TreeList<int> tree_1(rootData);
return tree_1;
break;
}
break;
case 2:
break;
}
return T data = 0;
}
*/