-
Notifications
You must be signed in to change notification settings - Fork 0
/
dataioclass.cpp
76 lines (61 loc) · 1.75 KB
/
dataioclass.cpp
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
#include "dataioclass.h"
DataIOClass::DataIOClass()
{
}
DataIOClass::~DataIOClass()
{
}
DataIOClass::DataIOClass(const DataIOClass& copyFromThis)
{
this->_InputVector = copyFromThis._InputVector;
this->_MultipleInputVector = copyFromThis._MultipleInputVector;
this->_OutputVector = copyFromThis._OutputVector;
}
DataIOClass::DataIOClass(DataIOClass&& moveFromThis)
{
this->_InputVector = moveFromThis._InputVector;
this->_MultipleInputVector = moveFromThis._MultipleInputVector;
this->_OutputVector = moveFromThis._OutputVector;
moveFromThis._InputVector.clear();
moveFromThis._OutputVector.clear();
}
DataIOClass& DataIOClass::operator=(const DataIOClass ©FromThis)
{
this->_InputVector = copyFromThis._InputVector;
this->_MultipleInputVector = copyFromThis._MultipleInputVector;
this->_OutputVector = copyFromThis._OutputVector;
return *this;
}
DataIOClass& DataIOClass::operator=(DataIOClass&& moveFromThis)
{
this->_InputVector = moveFromThis._InputVector;
this->_MultipleInputVector = moveFromThis._MultipleInputVector;
this->_OutputVector = moveFromThis._OutputVector;
moveFromThis._InputVector.clear();
moveFromThis._OutputVector.clear();
return *this;
}
void DataIOClass::SetInputs(std::vector<double> toThis)
{
this->_InputVector = toThis;
}
void DataIOClass::SetOutputs(std::vector<double> toThis)
{
this->_OutputVector = toThis;
}
std::vector<double> DataIOClass::GetInput() const noexcept
{
return _InputVector;
}
std::vector<double> DataIOClass::GetOutput() const noexcept
{
return _OutputVector;
}
void DataIOClass::InsertMultipleInput(std::vector<double> insertThis)
{
this->_MultipleInputVector.push_back(insertThis);
}
std::vector<std::vector<double>> DataIOClass::GetMultipleInput() const noexcept
{
return _MultipleInputVector;
}