00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef ACT_SET_STATS_H
00030 #define ACT_SET_STATS_H
00031
00032 #include "MoochoPack_Types.hpp"
00033
00034 namespace MoochoPack {
00035
00039 class ActSetStats {
00040 public:
00041
00042
00043
00045 enum { NOT_KNOWN = -1 };
00046
00047
00048
00050 ActSetStats()
00051 : num_active_(NOT_KNOWN), num_adds_(NOT_KNOWN), num_drops_(NOT_KNOWN)
00052 , num_active_indep_(NOT_KNOWN), num_adds_indep_(NOT_KNOWN), num_drops_indep_(NOT_KNOWN)
00053 {}
00054
00056 void set_stats(
00057 int num_active, int num_adds, int num_drops
00058 ,int num_active_indep, int num_adds_indep, int num_drops_indep
00059 )
00060 {
00061 num_active_ = num_active;
00062 num_adds_ = num_adds;
00063 num_drops_ = num_drops;
00064 num_active_indep_ = num_active_indep;
00065 num_adds_indep_ = num_adds_indep;
00066 num_drops_indep_ = num_drops_indep;
00067 }
00068
00070 int num_active() const
00071 {
00072 return num_active_;
00073 }
00075 int num_adds() const
00076 {
00077 return num_adds_;
00078 }
00080 int num_drops() const
00081 {
00082 return num_drops_;
00083 }
00084
00086 int num_active_indep() const
00087 {
00088 return num_active_indep_;
00089 }
00091 int num_adds_indep() const
00092 {
00093 return num_adds_indep_;
00094 }
00096 int num_drops_indep() const
00097 {
00098 return num_drops_indep_;
00099 }
00100
00101 private:
00102 int num_active_;
00103 int num_adds_;
00104 int num_drops_;
00105 int num_active_indep_;
00106 int num_adds_indep_;
00107 int num_drops_indep_;
00108
00109 };
00110
00111 }
00112
00113 #endif // ACT_SET_STATS_H