fixup compile errors and allow fetching property properly from cache
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
aa6f711251
commit
f9de016dfe
21 changed files with 213 additions and 122 deletions
|
|
@ -4,11 +4,10 @@
|
|||
|
||||
struct IkarusValue {
|
||||
public:
|
||||
using Data = std::variant<struct IkarusToggleValue *, struct IkarusNumberValue *, struct IkarusTextValue *>::variant;
|
||||
using Data = std::variant<struct IkarusToggleValue *, struct IkarusNumberValue *, struct IkarusTextValue *>;
|
||||
|
||||
public:
|
||||
explicit IkarusValue(Data data):
|
||||
_data(data) {}
|
||||
explicit IkarusValue(Data data);
|
||||
|
||||
IkarusValue(IkarusValue const&) = default;
|
||||
IkarusValue(IkarusValue&&) noexcept = default;
|
||||
|
|
@ -16,24 +15,14 @@ public:
|
|||
IkarusValue& operator=(IkarusValue const&) = default;
|
||||
IkarusValue& operator=(IkarusValue&&) noexcept = default;
|
||||
|
||||
virtual ~IkarusValue();
|
||||
virtual ~IkarusValue() = default;
|
||||
|
||||
public:
|
||||
[[nodiscard]] inline bool is_interminate() const {
|
||||
return _indeterminate;
|
||||
}
|
||||
[[nodiscard]] bool is_interminate() const;
|
||||
void set_intermediate(bool value);
|
||||
|
||||
void set_intermediate(bool value) {
|
||||
_indeterminate = value;
|
||||
}
|
||||
|
||||
[[nodiscard]] inline Data& get_data() {
|
||||
return _data;
|
||||
}
|
||||
|
||||
[[nodiscard]] inline Data const& get_data() const {
|
||||
return _data;
|
||||
}
|
||||
[[nodiscard]] Data& get_data();
|
||||
[[nodiscard]] Data const& get_data() const;
|
||||
|
||||
private:
|
||||
bool _indeterminate{false};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue