hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCEProcessData.cpp
Go to the documentation of this file.
1 #include <iostream>
2 #include <utility>
3 
4 #include "DRCEProcessData.hpp"
5 
6 namespace HCE
7 {
8 namespace drce
9 {
10 //-----------------------------------------------------------------------------
12 : pid(0), ppid(0), vram(0), rram(0), threads(0), utime(0), stime(0), cutime(0), cstime(0), cmd("")
13 {
14 }
15 //-----------------------------------------------------------------------------
17 : pid(0), ppid(0), vram(0), rram(0), threads(0), utime(0), stime(0), cutime(0), cstime(0), cmd("")
18 {
19  *this = rhs;
20 }
21 //-----------------------------------------------------------------------------
23 : pid(0), ppid(0), vram(0), rram(0), threads(0), utime(0), stime(0), cutime(0), cstime(0), cmd("")
24 {
25  *this = std::forward<ProcessData>(rhs);
26 }
27 //-----------------------------------------------------------------------------
29 {
30  if (&rhs!=this)
31  {
32  pid = rhs.pid;
33  ppid = rhs.ppid;
34  vram = rhs.vram;
35  rram = rhs.rram;
36  threads = rhs.threads;
37  utime = rhs.utime;
38  stime = rhs.stime;
39  cutime = rhs.cutime;
40  cstime = rhs.cstime;
41  cmd = rhs.cmd;
42  }
43  return *this;
44 }
45 //-----------------------------------------------------------------------------
47 {
48  if (&rhs!=this)
49  {
50  pid = std::move(rhs.pid);
51  ppid = std::move(rhs.ppid);
52  vram = std::move(rhs.vram);
53  rram = std::move(rhs.rram);
54  threads = std::move(rhs.threads);
55  utime = std::move(rhs.utime);
56  stime = std::move(rhs.stime);
57  cutime = std::move(rhs.cutime);
58  cstime = std::move(rhs.cstime);
59  cmd = std::move(rhs.cmd);
60  }
61  return *this;
62 }
63 //-----------------------------------------------------------------------------
65 {
66  pid = 0;
67  ppid = 0;
68  vram = 0;
69  rram = 0;
70  threads = 0;
71  utime = 0;
72  stime = 0;
73  cutime = 0;
74  cstime = 0;
75  cmd.clear();
76 }
77 //-----------------------------------------------------------------------------
78 //-----------------------------------------------------------------------------
79 } // end namespace drce
80 } // end namespace HCE