Store generic value. More...
Public Member Functions | |
value (std::nullptr_t) | |
value (Eina_Value *raw) | |
value (Eina_Value const *raw) | |
~value () | |
Deallocate stored value. | |
value (value_view const &other) | |
Copy Constructor. More... | |
value & | operator= (value other) |
Assignment operator. More... | |
void | swap (value &other) |
value_view () | |
Default constructor. More... | |
template<typename T , typename Enable = typename std::enable_if<_eina_value_traits<T>::is_specialized::value>::type> | |
value_view (T v) | |
Create an generic value storage holding the given argument. More... | |
value_view (char v) | |
Create an generic value storage holding a char value. More... | |
value_view (short v) | |
Create an generic value storage holding a short value. More... | |
value_view (int v) | |
Create an generic value storage holding a int value. More... | |
value_view (long v) | |
Create an generic value storage holding a long value. More... | |
value_view (unsigned char v) | |
Create an generic value storage holding a unsigned char value. More... | |
value_view (unsigned short v) | |
Create an generic value storage holding a unsigned short value. More... | |
value_view (unsigned int v) | |
Create an generic value storage holding a unsigned int value. More... | |
value_view (unsigned long v) | |
Create an generic value storage holding a unsigned long value. More... | |
value_view (float v) | |
Create an generic value storage holding a float value. More... | |
value_view (double v) | |
Create an generic value storage holding a double value. More... | |
value_view (Eina_Value *raw) | |
![]() | |
value_view () | |
Default constructor. More... | |
template<typename T , typename Enable = typename std::enable_if<_eina_value_traits<T>::is_specialized::value>::type> | |
value_view (T v) | |
Create an generic value storage holding the given argument. More... | |
value_view (char v) | |
Create an generic value storage holding a char value. More... | |
value_view (short v) | |
Create an generic value storage holding a short value. More... | |
value_view (int v) | |
Create an generic value storage holding a int value. More... | |
value_view (long v) | |
Create an generic value storage holding a long value. More... | |
value_view (unsigned char v) | |
Create an generic value storage holding a unsigned char value. More... | |
value_view (unsigned short v) | |
Create an generic value storage holding a unsigned short value. More... | |
value_view (unsigned int v) | |
Create an generic value storage holding a unsigned int value. More... | |
value_view (unsigned long v) | |
Create an generic value storage holding a unsigned long value. More... | |
value_view (float v) | |
Create an generic value storage holding a float value. More... | |
value_view (double v) | |
Create an generic value storage holding a double value. More... | |
value_view (Eina_Value *raw) | |
void | swap (value_view &other) |
Swap stored values with the given eina::value object. More... | |
native_handle_type | native_handle () const |
void | reset (Eina_Value *v) |
type_info_t | type_info () const |
Get an identifier for the type of the value currently stored. More... | |
Friends | |
void | swap (value &lhs, value &rhs) |
Swap the stored values between the given eina::value objects. More... | |
bool | operator== (value const &lhs, value const &rhs) |
Compare if the stored values are equal. More... | |
bool | operator< (value const &lhs, value const &rhs) |
Less than comparison between two eina::value objects. More... | |
bool | operator> (value const &lhs, value const &rhs) |
More than comparison between two eina::value objects. More... | |
bool | operator<= (value const &lhs, value const &rhs) |
Less than or equal comparison between two eina::value objects. More... | |
bool | operator>= (value const &lhs, value const &rhs) |
More than or equal comparison between two eina::value objects. More... | |
bool | operator!= (value const &lhs, value const &rhs) |
Compare if the stored values are different. More... | |
Additional Inherited Members | |
![]() | |
typedef Eina_Value * | native_handle_type |
Get a handle for the wrapped Eina_Value . More... | |
typedef Eina_Value_Type const * | type_info_t |
Type for a constant pointer to an Eina_Value_Type . More... | |
![]() | |
::Eina_Value * | _raw |
Store generic value.
|
inline |
Copy Constructor.
Create an generic value storage holding the same value of other
.
other | Another eina::value object. |
References eina_value_copy(), and eina_value_free().
Assignment operator.
Replace the current stored value by the value in other
.
other | Another eina::value object. |
|
inline |
Default constructor.
Create an empty generic value storage.
|
inline |
Create an generic value storage holding the given argument.
v | Value to be stored. |
|
inline |
Create an generic value storage holding a char
value.
v | char value to be stored. |
|
inline |
Create an generic value storage holding a short
value.
v | short value to be stored. |
|
inline |
Create an generic value storage holding a int
value.
v | int value to be stored. |
|
inline |
Create an generic value storage holding a long
value.
v | long value to be stored. |
|
inline |
Create an generic value storage holding a unsigned char
value.
v | unsigned char value to be stored. |
|
inline |
Create an generic value storage holding a unsigned short
value.
v | unsigned short value to be stored. |
|
inline |
Create an generic value storage holding a unsigned int
value.
v | unsigned int value to be stored. |
|
inline |
Create an generic value storage holding a unsigned long
value.
v | unsigned long value to be stored. |
|
inline |
Create an generic value storage holding a float
value.
v | float value to be stored. |
|
inline |
Create an generic value storage holding a double
value.
v | double value to be stored. |
Swap the stored values between the given eina::value
objects.
lhs | First eina::value object. |
rhs | Second eina::value object. |
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. 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. 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. 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.