#include <variant_value.hpp>
Public Member Functions | |
variant_decimal (int value) | |
variant_decimal (double value) | |
virtual std::string | string_cast () const override |
Returns the stored variant value in plain string form. More... | |
virtual std::string | get_serialized_string () const override |
Returns the stored variant value in formula syntax. More... | |
virtual std::string | get_debug_string (formula_seen_stack &, bool) const override |
Returns debug info for the variant value. More... | |
virtual const formula_variant::type & | get_type () const override |
Returns the id of the variant type. More... | |
Public Member Functions inherited from wfl::variant_numeric | |
variant_numeric (int value) | |
virtual bool | as_bool () const override |
Returns a bool expression of the variant value. More... | |
int | get_numeric_value () const |
virtual bool | equals (variant_value_base &other) const override |
Called to determine if this variant is equal to another of the same type. More... | |
virtual bool | less_than (variant_value_base &other) const override |
Called to determine if this variant is less than another of the same type. More... | |
Public Member Functions inherited from wfl::variant_value_base | |
virtual std::size_t | num_elements () const |
Returns the number of elements in a type. More... | |
virtual bool | is_empty () const |
Whether the stored value is considered empty or not. More... | |
virtual boost::iterator_range< variant_iterator > | make_iterator () const |
Creates an iterator pair that can be used for iteration. More... | |
virtual variant | deref_iterator (const utils::any &iter) const |
Implements the dereference functionality of variant_iterator for a value of this type. More... | |
virtual void | iterator_inc (utils::any &) const |
Implements the increment functionality of variant_iterator for a value of this type. More... | |
virtual void | iterator_dec (utils::any &) const |
Implements the decrement functionality of variant_iterator for a value of this type. More... | |
virtual bool | iterator_equals (const utils::any &, const utils::any &) const |
Implements the equality functionality of variant_iterator for a value of this type. More... | |
virtual | ~variant_value_base () |
Private Member Functions | |
std::string | to_string_impl (const bool sign_value) const |
Additional Inherited Members | |
Protected Attributes inherited from wfl::variant_numeric | |
int | value_ |
Definition at line 255 of file variant_value.hpp.
|
inlineexplicit |
Definition at line 258 of file variant_value.hpp.
|
inlineexplicit |
Definition at line 260 of file variant_value.hpp.
References wfl::variant_numeric::value_.
|
inlineoverridevirtual |
Returns debug info for the variant value.
Reimplemented from wfl::variant_value_base.
Definition at line 283 of file variant_value.hpp.
References to_string_impl().
|
inlineoverridevirtual |
Returns the stored variant value in formula syntax.
Reimplemented from wfl::variant_value_base.
Definition at line 278 of file variant_value.hpp.
References to_string_impl().
|
inlineoverridevirtual |
Returns the id of the variant type.
Reimplemented from wfl::variant_value_base.
Definition at line 288 of file variant_value.hpp.
|
inlineoverridevirtual |
Returns the stored variant value in plain string form.
Reimplemented from wfl::variant_value_base.
Definition at line 273 of file variant_value.hpp.
References to_string_impl().
|
private |
Definition at line 50 of file variant_value.cpp.
References wfl::variant_numeric::value_.
Referenced by get_debug_string(), get_serialized_string(), and string_cast().