hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCEAvgCounts.cpp
Go to the documentation of this file.
1 #include "DRCEAvgCounts.hpp"
2 
3 namespace HCE
4 {
5 namespace drce
6 {
7 //-----------------------------------------------------------------------------
9 : timeAsyncTaskCount(0), timeSyncTaskCount(0), sizeInputBufferSyncTasksCount(0), sizeOutputBufferSyncTasksCount(0),
10  sizeInputBufferAsyncTasksCount(0), sizeOutputBufferAsyncTasksCount(0), cpuUsageAsyncTasksCount(0), memoryUsageAsyncTasksCount(0),
11  countSyncTasksForMinuteCount(0), countAsyncTasksForMinuteCount(0)
12 {
13 }
14 //-----------------------------------------------------------------------------
16 : timeAsyncTaskCount(0), timeSyncTaskCount(0), sizeInputBufferSyncTasksCount(0), sizeOutputBufferSyncTasksCount(0),
17  sizeInputBufferAsyncTasksCount(0), sizeOutputBufferAsyncTasksCount(0), cpuUsageAsyncTasksCount(0), memoryUsageAsyncTasksCount(0),
18  countSyncTasksForMinuteCount(0), countAsyncTasksForMinuteCount(0)
19 {
20  (*this) = rhs;
21 }
22 //-----------------------------------------------------------------------------
24 : timeAsyncTaskCount(0), timeSyncTaskCount(0), sizeInputBufferSyncTasksCount(0), sizeOutputBufferSyncTasksCount(0),
25  sizeInputBufferAsyncTasksCount(0), sizeOutputBufferAsyncTasksCount(0), cpuUsageAsyncTasksCount(0), memoryUsageAsyncTasksCount(0),
26  countSyncTasksForMinuteCount(0), countAsyncTasksForMinuteCount(0)
27 {
28  (*this) = std::forward<AvgCounts>(rhs);
29 }
30 //-----------------------------------------------------------------------------
32 {
33  if (this!=&rhs)
34  {
45  }
46  return *this;
47 }
48 //-----------------------------------------------------------------------------
50 {
51  if (this!=&rhs)
52  {
53  timeAsyncTaskCount = std::move(rhs.timeAsyncTaskCount);
54  timeSyncTaskCount = std::move(rhs.timeSyncTaskCount);
55  sizeInputBufferSyncTasksCount = std::move(rhs.sizeInputBufferSyncTasksCount);
56  sizeOutputBufferSyncTasksCount = std::move(rhs.sizeOutputBufferSyncTasksCount);
57  sizeInputBufferAsyncTasksCount = std::move(rhs.sizeInputBufferAsyncTasksCount);
58  sizeOutputBufferAsyncTasksCount = std::move(rhs.sizeOutputBufferAsyncTasksCount);
59  cpuUsageAsyncTasksCount = std::move(rhs.cpuUsageAsyncTasksCount);
60  memoryUsageAsyncTasksCount = std::move(rhs.memoryUsageAsyncTasksCount);
61  countSyncTasksForMinuteCount = std::move(rhs.countSyncTasksForMinuteCount);
62  countAsyncTasksForMinuteCount = std::move(rhs.countAsyncTasksForMinuteCount);
63  }
64  return *this;
65 }
66 //-----------------------------------------------------------------------------
67 void AvgCounts::clear(void)
68 {
79 }
80 //-----------------------------------------------------------------------------
81 //-----------------------------------------------------------------------------
82 } // end namespace drce
83 } // end namespace HCE