This commit is contained in:
deeaitch committed 2026-10-13 08:17:49 -04:00
1 parent 7022c84941
commit c3d3bd51fb
72 files changed
+3703 -2484

No files matched your search

+5 -5
View File
@@ -88,11 +88,11 @@ class DecodeDatabase {
public:
DecodeDatabase() = default;
/**
* Freeze definitions and build the frame index.
* Do not retain mutable aliases into moved input vectors.
* @throws std::invalid_argument for duplicate frame keys or signal names.
* Copy and validate definitions before building the frame index.
* Input aliases cannot modify the snapshot, even for rvalue input.
* @throws std::invalid_argument for invalid metadata or duplicate keys.
*/
explicit DecodeDatabase(std::vector<DecodeFrame> frames);
explicit DecodeDatabase(const std::vector<DecodeFrame> &frames);
/** Borrowed view, valid while this snapshot remains alive and unchanged. */
const std::vector<DecodeFrame> &GetFrames() const;
@@ -105,7 +105,7 @@ private:
std::vector<DecodeFrame> frames;
std::unordered_map<FrameKey, std::size_t, FrameKeyHasher> frameIndexByKey;
explicit Storage(std::vector<DecodeFrame> definitions);
explicit Storage(const std::vector<DecodeFrame> &definitions);
};
std::shared_ptr<const Storage> storage;