]> git.stg.codes - stg.git/blobdiff - include/stg/user_traff.h
Ticket 37. In the if() construction for the changePolicyTimeout
[stg.git] / include / stg / user_traff.h
index 1b9e2035ce9e8466457bf4c2857ff61cf1451367..eec4627669f6c8e8ee47797a695a1f0d3caf6304 100644 (file)
@@ -51,6 +51,12 @@ public:
     uint64_t & operator[](IndexType idx) { return traff[idx]; }
     IndexType size() const { return traff.size(); }
 
     uint64_t & operator[](IndexType idx) { return traff[idx]; }
     IndexType size() const { return traff.size(); }
 
+    void Reset()
+    {
+    for (IndexType i = 0; i < traff.size(); ++i)
+        traff[i] = 0;
+    }
+
 private:
     ContainerType traff;
 };
 private:
     ContainerType traff;
 };