HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCEResultData.cpp
Go to the documentation of this file.
1 #include <utility>
2 
3 #include "DRCEResultData.hpp"
4 
5 namespace HCE
6 {
7 namespace drce
8 {
9 //-----------------------------------------------------------------------------
11 : inherited(), stdoutStream(""), stderrStream(""), nodeName(""), time(0), exitStatus(0)
12 {
13 }
14 //-----------------------------------------------------------------------------
16 : inherited(), stdoutStream(""), stderrStream(""), nodeName(""), time(0), exitStatus(0)
17 {
18  (*this) = rhs;
19 }
20 //-----------------------------------------------------------------------------
22 : inherited(), stdoutStream(""), stderrStream(""), nodeName(""), time(0), exitStatus(0)
23 {
24  (*this) = std::forward<DRCEResultDataItem>(rhs);
25 }
26 //-----------------------------------------------------------------------------
28 {
29  if (this!=&rhs)
30  {
31  stdoutStream = rhs.getStdoutStream();
32  stderrStream = rhs.getStderrStream();
33  nodeName = rhs.getNodeName();
34  time = rhs.getTime();
35  files = rhs.getFiles();
36  }
37  return *this;
38 }
39 //-----------------------------------------------------------------------------
41 {
42  if (this!=&rhs)
43  {
44  stdoutStream = std::move(rhs.getStdoutStream());
45  stderrStream = std::move(rhs.getStderrStream());
46  nodeName = std::move(rhs.getNodeName());
47  time = std::move(rhs.getTime());
48  files = std::move(rhs.getFiles());
49  }
50  return *this;
51 }
52 //-----------------------------------------------------------------------------
54 {
55  stdoutStream.clear();
56  stderrStream.clear();
57  nodeName.clear();
58  time = 0;
59  files.clear();
60 }
61 //-----------------------------------------------------------------------------
62 //-----------------------------------------------------------------------------
64 : items()
65 {
66 }
67 //-----------------------------------------------------------------------------
69 {
70  if (this!=&rhs)
71  {
72  items = rhs.getItems();
73  }
74  return *this;
75 }
76 //-----------------------------------------------------------------------------
78 {
79  if (this!=&rhs)
80  {
81  items = std::move(rhs.getItems());
82  }
83  return *this;
84 }
85 //-----------------------------------------------------------------------------
87 {
88  items.push_back(dataItem);
89 }
90 //-----------------------------------------------------------------------------
92 {
93  items.push_back(std::move(std::forward<DRCEResultDataItem>(dataItem)));
94 }
95 //-----------------------------------------------------------------------------
97 {
98  return items.size();
99 }
100 //-----------------------------------------------------------------------------
102 {
103  return items[index];
104 }
105 //-----------------------------------------------------------------------------
107 {
108  items[index] = dataItem;
109 }
110 //-----------------------------------------------------------------------------
112 {
113  items[index] = std::forward<DRCEResultDataItem>(dataItem);
114 }
115 //-----------------------------------------------------------------------------
117 {
118  items.clear();
119 }
120 //-----------------------------------------------------------------------------
121 //-----------------------------------------------------------------------------
122 } // namespace drce
123 } // namespace HCE