git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 26. The const MODULE_SETTINGS & ms parameter added to the
[stg.git]
/
include
/
stg
/
user_traff.h
diff --git
a/include/stg/user_traff.h
b/include/stg/user_traff.h
index 1b9e2035ce9e8466457bf4c2857ff61cf1451367..eec4627669f6c8e8ee47797a695a1f0d3caf6304 100644
(file)
--- a/
include/stg/user_traff.h
+++ b/
include/stg/user_traff.h
@@
-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;
};