X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6b783a3154c0e105e8480057844cf11d482ac279..fc06430b05b154e0e859c6a436c1ffd74576a189:/include/stg/user_traff.h?ds=sidebyside diff --git a/include/stg/user_traff.h b/include/stg/user_traff.h index 133cb54c..4d5efe62 100644 --- a/include/stg/user_traff.h +++ b/include/stg/user_traff.h @@ -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; + for (IndexType i = 0; i < traff.size(); ++i) + if (!traff[i].empty()) + res[i] = traff[i].data(); + return res; + } private: ContainerType traff;