adjust values api to vector-esque interface
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
733b52575b
commit
3395eba331
13 changed files with 297 additions and 220 deletions
|
|
@ -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{};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue