-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTBCData.cpp
71 lines (53 loc) · 1.16 KB
/
TBCData.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
//
// TBCData.cpp
// IntegrationPointExperiments
//
// Created by Omar Durán on 3/26/19.
//
#include "TBCData.h"
TBCData::TBCData(){
m_value.resize(0);
}
TBCData::TBCData(const TBCData & other){
m_id = other.m_id;
m_type = other.m_type;
m_value = other.m_value;
m_initial_value = other.m_initial_value;
}
TBCData & TBCData::operator=(const TBCData & other){
/// check for self-assignment
if(&other == this){
return *this;
}
m_id = other.m_id;
m_type = other.m_type;
m_value = other.m_value;
m_initial_value = other.m_initial_value;
return *this;
}
TBCData::~TBCData(){
}
void TBCData::SetId (int id) {
m_id = id;
}
int TBCData::Id () {
return m_id;
}
void TBCData::SetType (int type) {
m_type = type;
}
int TBCData::Type () {
return m_type;
}
void TBCData::SetValue (std::vector<REAL> value) {
m_value = value;
}
std::vector<REAL> TBCData::Value () {
return m_value;
}
void TBCData::SetInitialValue (REAL initv) {
m_initial_value = initv;
}
REAL TBCData::InitialValue() {
return m_initial_value;
}