Abstracts generic data storage and access to it in an extensible and efficient way. More...
Functions | |
template<typename T > | |
T | efl::eina::get (value const &v) |
void | efl::eina::swap (value &lhs, value &rhs) |
Swap the stored values between the given eina::value objects. More... | |
bool | efl::eina::operator== (value const &lhs, value const &rhs) |
Compare if the stored values are equal. More... | |
bool | efl::eina::operator< (value const &lhs, value const &rhs) |
Less than comparison between two eina::value objects. More... | |
bool | efl::eina::operator> (value const &lhs, value const &rhs) |
More than comparison between two eina::value objects. More... | |
bool | efl::eina::operator<= (value const &lhs, value const &rhs) |
Less than or equal comparison between two eina::value objects. More... | |
bool | efl::eina::operator>= (value const &lhs, value const &rhs) |
More than or equal comparison between two eina::value objects. More... | |
bool | efl::eina::operator!= (value const &lhs, value const &rhs) |
Compare if the stored values are different. 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.
T efl::eina::get | ( | value const & | v | ) |
v | eina::value object. |
T | Type of the value stored. |
v
. <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 the stored values between the given eina::value
objects.
lhs | First eina::value object. |
rhs | Second eina::value object. |
References efl::eina::value::swap().
Referenced by efl::eina::value::swap().
Compare if the stored values are equal.
lhs | eina::value object at the left side of the expression. |
rhs | eina::value object at the right side of the expression. |
true
if the stored values are of the same type and equals in content, false
otherwise. References eina_value_compare(), and efl::eina::value::type_info().
Less than comparison between two eina::value
objects.
lhs | eina::value object at the left side of the expression. |
rhs | eina::value object at the right side of the expression. |
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::type_info().
More than comparison between two eina::value
objects.
lhs | eina::value object at the left side of the expression. |
rhs | eina::value object at the right side of the expression. |
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::type_info().
Less than or equal comparison between two eina::value
objects.
lhs | eina::value object at the left side of the expression. |
rhs | eina::value object at the right side of the expression. |
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. More than or equal comparison between two eina::value
objects.
lhs | eina::value object at the left side of the expression. |
rhs | eina::value object at the right side of the expression. |
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. Compare if the stored values are different.
lhs | eina::value object at the left side of the expression. |
rhs | eina::value object at the right side of the expression. |
true
if the value types are different or if the value of lhs
is different from the value of , false
otherwise.