adjust values api to vector-esque interface

Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
folling 2023-12-03 10:16:13 +01:00 committed by Folling
parent 733b52575b
commit 3395eba331
Signed by: folling
SSH key fingerprint: SHA256:S9qEx5WCFFLK49tE/LKnKuJYM5sw+++Dn6qJbbyxnCY
13 changed files with 297 additions and 220 deletions

View file

@ -1,12 +1,13 @@
#pragma once
#include <vector>
#include <boost/container/vector.hpp>
#include <values/value.hpp>
struct IkarusToggleValue final : IkarusValue {
public:
using data_type = bool;
public:
explicit IkarusToggleValue();
@ -19,9 +20,5 @@ public:
~IkarusToggleValue() override = default;
public:
[[nodiscard]] boost::container::vector<bool>& get_value();
[[nodiscard]] boost::container::vector<bool> const& get_value() const;
private:
boost::container::vector<bool> _value{};
boost::container::vector<data_type> value{};
};