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 2e41c36d84
commit 8ad9869d0d
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 IkarusNumberValue final : IkarusValue {
public:
using data_type = long double;
public:
explicit IkarusNumberValue();
@ -19,9 +20,5 @@ public:
~IkarusNumberValue() override = default;
public:
[[nodiscard]] boost::container::vector<long double>& get_value();
[[nodiscard]] boost::container::vector<long double> const& get_value() const;
private:
boost::container::vector<long double> _value{};
boost::container::vector<data_type> value{};
};