]> git.stg.codes - stg.git/blobdiff - include/stg/user_traff.h
Changed USER_STAT_RES.
[stg.git] / include / stg / user_traff.h
index 133cb54c9fca665877baf49855cf7bcbf955a799..41c6c23fe63814c37c1da51a9a49a43ddbd1ccde 100644 (file)
@@ -86,6 +86,14 @@ public:
     }
     const ValueType & operator[](IndexType idx) const { return traff[idx]; }
     ValueType & operator[](IndexType idx) { return traff[idx]; }
+    DIR_TRAFF GetData() const
+    {
+    DIR_TRAFF res(traff.size());
+    for (IndexType i = 0; i < traff.size(); ++i)
+        if (!traff[i].empty())
+            res[i] = traff[i].data();
+    return res;
+    }
 
 private:
     ContainerType traff;