]> git.stg.codes - stg.git/blobdiff - include/stg/user_traff.h
Ticket. MybeSet()function call added for the change-policy-timeout.
[stg.git] / include / stg / user_traff.h
index eec4627669f6c8e8ee47797a695a1f0d3caf6304..8ef8e2608f8d3f2f569a7bb8cd4800e57a739b7b 100644 (file)
@@ -80,6 +80,7 @@ return o;
 class DIR_TRAFF_RES
 {
 public:
+    typedef RESETABLE<uint64_t> value_type;
     typedef RESETABLE<uint64_t> ValueType;
     typedef std::vector<ValueType> ContainerType;
     typedef ContainerType::size_type IndexType;
@@ -93,6 +94,7 @@ public:
     }
     const ValueType & operator[](IndexType idx) const { return traff[idx]; }
     ValueType & operator[](IndexType idx) { return traff[idx]; }
+    IndexType size() const { return traff.size(); }
     DIR_TRAFF GetData() const
     {
     DIR_TRAFF res;