Abstracts generic data storage and access to it in an extensible and efficient way.
More...
Abstracts generic data storage and access to it in an extensible and efficient way.
It is meant for simple data types, providing uniform access, useful to exchange data preserving their types.
§ get()
- Parameters
-
- Returns
- Copy of the value stored in
v
.
- Exceptions
-
<tt>eina::system_error</tt> | with error the code EINA_ERROR_VALUE_FAILED if T doesn't match the type of the value currently stored. Or eina::system_error with an internal Eina error code if the operation fails for another reason. |
This function returns the value stored in v
. The type of the value must be specified via the template parameter T
, and must match the current stored value type.
§ swap()
§ operator==()
§ operator<()
Less than comparison between two eina::value
objects.
- Parameters
-
lhs | eina::value object at the left side of the expression. |
rhs | eina::value object at the right side of the expression. |
- Returns
- For objects holding values of the same type, returns
true
if lhs
value is less than rhs
value. For objects holding values of different types, returns true
if the type identifier of lhs
comes before the type indentifier of rhs
. Returns false
in all other cases.
References eina_value_compare(), and efl::eina::value_view::type_info().
§ operator>()
More than comparison between two eina::value_view
objects.
- Parameters
-
- Returns
- For objects holding values of the same type, returns
true
if lhs
value is more than rhs
value. For objects holding values of different types, returns true
if the type identifier of lhs
comes after the type indentifier of rhs
. Returns false
in all other cases.
References eina_value_compare(), and efl::eina::value_view::type_info().
§ operator<=()
Less than or equal comparison between two eina::value_view
objects.
- Parameters
-
- Returns
- For objects holding values of the same type, returns
true
if lhs
value is less than or equal to rhs
value. For objects holding values of different types, returns true
if the type identifier of lhs
comes before the type indentifier of rhs
. Returns false
in all other cases.
§ operator>=()
More than or equal comparison between two eina::value
objects.
- Parameters
-
lhs | eina::value object at the left side of the expression. |
rhs | eina::value object at the right side of the expression. |
- Returns
- For objects holding values of the same type, returns
true
if lhs
value is more than or equal to rhs
value. For objects holding values of different types, returns true
if the type identifier of lhs
comes after the type indentifier of rhs
. Returns false
in all other cases.
§ operator!=()
Compare if the stored values are different.
- Parameters
-
lhs | eina::value object at the left side of the expression. |
rhs | eina::value object at the right side of the expression. |
- Returns
true
if the value types are different or if the value of lhs
is different from the value of , false
otherwise.