commit | a8182beb1129b0608d2ddfb82895194ea3485288 | [log] [tgz] |
---|---|---|
author | Krzysztof Grobelny <krzysztof.grobelny@intel.com> | Mon Jul 04 11:26:20 2022 +0200 |
committer | Krzysztof Grobelny <krzysztof.grobelny@intel.com> | Mon Sep 05 15:45:28 2022 +0200 |
tree | 4fef52a88a09b5ed1efa31cc3851fb3ecd13b687 | |
parent | 458a37d19dcba48c6ff18ae4716faa7d39337300 [diff] [blame] |
added Enabled to AddReportFutureVersion API - New parameter added to API - Changed API to be more flexible in the future Tested: - Unit tests are passing - Tested together with: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/49796/23 POST, PATCH, PUT for MetricReportDefinitions are working correctly Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com> Change-Id: Ic988446d283a581dc6866418b1b27a989c3bc9a0
diff --git a/src/utils/circular_vector.hpp b/src/utils/circular_vector.hpp index f7ac8e5..be13873 100644 --- a/src/utils/circular_vector.hpp +++ b/src/utils/circular_vector.hpp
@@ -53,6 +53,11 @@ return vec.end(); } + size_t size() const + { + return maxSize; + } + private: std::vector<T>& vec; size_t maxSize = 0;