Tizen Native API
4.0
|
Functions | |
Eina_Value * | eina_value_array_new (const Eina_Value_Type *subtype, unsigned int step) |
Creates generic value storage of type array. | |
static Eina_Bool | eina_value_array_setup (Eina_Value *value, const Eina_Value_Type *subtype, unsigned int step) |
Initializes generic value storage of type array. | |
static unsigned int | eina_value_array_count (const Eina_Value *value) |
Queries number of elements in value of array type. | |
static Eina_Bool | eina_value_array_remove (Eina_Value *value, unsigned int position) |
Removes element at given position in value of array type. | |
static Eina_Bool | eina_value_array_set (Eina_Value *value, unsigned int position,...) |
Sets the generic value in an array member. | |
static Eina_Bool | eina_value_array_get (const Eina_Value *value, unsigned int position,...) |
Gets the generic value from an array member. | |
static Eina_Bool | eina_value_array_insert (Eina_Value *value, unsigned int position,...) |
Inserts a generic value in an array member position. | |
static Eina_Bool | eina_value_array_append (Eina_Value *value,...) |
Appends a generic value in an array. | |
static Eina_Bool | eina_value_array_vset (Eina_Value *value, unsigned int position, va_list args) |
Sets a generic value to an array member. | |
static Eina_Bool | eina_value_array_vget (const Eina_Value *value, unsigned int position, va_list args) |
Gets the generic value from an array member. | |
static Eina_Bool | eina_value_array_vinsert (Eina_Value *value, unsigned int position, va_list args) |
Inserts a generic value to an array member position. | |
static Eina_Bool | eina_value_array_vappend (Eina_Value *value, va_list args) |
Appends a generic value to an array. | |
static Eina_Bool | eina_value_array_pset (Eina_Value *value, unsigned int position, const void *ptr) |
Sets a generic value to an array member from a pointer. | |
static Eina_Bool | eina_value_array_pget (const Eina_Value *value, unsigned int position, void *ptr) |
Retrieves a generic value into a pointer from an array member. | |
static Eina_Bool | eina_value_array_pinsert (Eina_Value *value, unsigned int position, const void *ptr) |
Inserts a generic value to an array member position from a pointer. | |
static Eina_Bool | eina_value_array_pappend (Eina_Value *value, const void *ptr) |
Appends a generic value to an array from a pointer. | |
static Eina_Bool | eina_value_array_value_get (const Eina_Value *src, unsigned int position, Eina_Value *dst) |
Retrieves a value from the array as an Eina_Value copy. | |
Typedefs | |
typedef struct _Eina_Value_Array | Eina_Value_Array |
static Eina_Bool eina_value_array_append | ( | Eina_Value * | value, |
... | |||
) | [static] |
Appends a generic value in an array.
value | Source value object |
The variable argument is dependent on chosen subtype. The list for basic types:
Eina_Value *value = eina_value_array_new(EINA_VALUE_TYPE_INT, 0); int x; eina_value_array_append(value, 1234); eina_value_array_get(value, 0, &x); eina_value_free(value);
static unsigned int eina_value_array_count | ( | const Eina_Value * | value | ) | [static] |
Queries number of elements in value of array type.
value | value object. |
static Eina_Bool eina_value_array_get | ( | const Eina_Value * | value, |
unsigned int | position, | ||
... | |||
) | [static] |
Gets the generic value from an array member.
value | Source value object |
position | Index of the member |
The value is returned in the variable argument parameter, and the actual value is type-dependent, but usually it will be what is stored inside the object. There shouldn't be any memory allocation; thus the contents should not be freed.
The variable argument is dependent on chosen subtype. The list for basic types:
Eina_Value *value = eina_value_array_new(EINA_VALUE_TYPE_INT, 0); int x; eina_value_array_append(value, 1234); eina_value_array_get(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_array_insert | ( | Eina_Value * | value, |
unsigned int | position, | ||
... | |||
) | [static] |
Inserts a generic value in an array member position.
value | Source value object |
position | Index of the member |
The variable argument is dependent on chosen subtype. The list for basic types:
Eina_Value *value = eina_value_array_new(EINA_VALUE_TYPE_INT, 0); int x; eina_value_array_insert(value, 0, 1234); eina_value_array_get(value, 0, &x); eina_value_free(value);
Eina_Value* eina_value_array_new | ( | const Eina_Value_Type * | subtype, |
unsigned int | step | ||
) |
Creates generic value storage of type array.
subtype | How to manage this array members. |
step | How to grow the members array. |
NULL
on failure.Create a new generic value storage of type array. The members are managed using the description specified by subtype.
On failure, NULL
is returned.
static Eina_Bool eina_value_array_pappend | ( | Eina_Value * | value, |
const void * | ptr | ||
) | [static] |
Appends a generic value to an array from a pointer.
value | Source value object |
ptr | Pointer to specify the contents. |
The pointer type is dependent on chosen value type. The list for basic types:
Eina_Value *value = eina_value_array_new(EINA_VALUE_TYPE_INT, 0); int x = 1234; eina_value_array_pappend(value, &x); eina_value_array_pget(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_array_pget | ( | const Eina_Value * | value, |
unsigned int | position, | ||
void * | ptr | ||
) | [static] |
Retrieves a generic value into a pointer from an array member.
value | Source value object |
position | Index of the member |
ptr | Pointer to receive the contents. |
The value is returned in pointer contents, the actual value is type-dependent, but usually it will be what is stored inside the object. There shouldn't be any memory allocation, thus the contents should not be freed.
The pointer type is dependent on chosen value type. The list for basic types:
Eina_Value *value = eina_value_array_new(EINA_VALUE_TYPE_INT, 0); int x; eina_value_array_append(value, 1234); eina_value_array_pget(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_array_pinsert | ( | Eina_Value * | value, |
unsigned int | position, | ||
const void * | ptr | ||
) | [static] |
Inserts a generic value to an array member position from a pointer.
value | Source value object |
position | Index of the member |
ptr | Pointer to specify the contents. |
The pointer type is dependent on chosen value type. The list for basic types:
Eina_Value *value = eina_value_array_new(EINA_VALUE_TYPE_INT, 0); int x = 1234; eina_value_array_pinsert(value, 0, &x); eina_value_array_pget(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_array_pset | ( | Eina_Value * | value, |
unsigned int | position, | ||
const void * | ptr | ||
) | [static] |
Sets a generic value to an array member from a pointer.
value | Source value object |
position | Index of the member |
ptr | Pointer to specify the contents. |
The pointer type is dependent on chosen value type. The list for basic types:
Eina_Value *value = eina_value_array_new(EINA_VALUE_TYPE_INT, 0); int x = 1234; eina_value_array_append(value, 1234); eina_value_array_pset(value, 0, &x); eina_value_array_pget(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_array_remove | ( | Eina_Value * | value, |
unsigned int | position | ||
) | [static] |
Removes element at given position in value of array type.
value | value object. |
position | index of the member |
static Eina_Bool eina_value_array_set | ( | Eina_Value * | value, |
unsigned int | position, | ||
... | |||
) | [static] |
Sets the generic value in an array member.
value | Source value object |
position | Index of the member |
The variable argument is dependent on chosen subtype. The list for basic types:
Eina_Value *value = eina_value_array_new(EINA_VALUE_TYPE_INT, 0); int x; eina_value_array_append(value, 1234); eina_value_array_set(value, 0, 5678); eina_value_array_get(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_array_setup | ( | Eina_Value * | value, |
const Eina_Value_Type * | subtype, | ||
unsigned int | step | ||
) | [static] |
Initializes generic value storage of type array.
value | Value object |
subtype | How to manage array members. |
step | How to grow the members array. |
Initializes new generic value storage of type array with the given subtype.
This is the same as calling eina_value_set() with EINA_VALUE_TYPE_ARRAY followed by eina_value_pset() with the Eina_Value_Array description configured.
On failure, EINA_FALSE is returned.
static Eina_Bool eina_value_array_value_get | ( | const Eina_Value * | src, |
unsigned int | position, | ||
Eina_Value * | dst | ||
) | [static] |
Retrieves a value from the array as an Eina_Value copy.
src | Source value object |
position | Index of the member |
dst | Where to return the array member |
The argument dst is considered uninitialized and it's setup to the type of the member.
static Eina_Bool eina_value_array_vappend | ( | Eina_Value * | value, |
va_list | args | ||
) | [static] |
Appends a generic value to an array.
value | Source value object |
args | Variable argument |
static Eina_Bool eina_value_array_vget | ( | const Eina_Value * | value, |
unsigned int | position, | ||
va_list | args | ||
) | [static] |
Gets the generic value from an array member.
value | Source value object |
position | Index of the member |
args | Variable argument |
The value is returned in the variable argument parameter, the actual value is type-dependent, but usually it will be what is stored inside the object. There shouldn't be any memory allocation, thus the contents should not be freed.
static Eina_Bool eina_value_array_vinsert | ( | Eina_Value * | value, |
unsigned int | position, | ||
va_list | args | ||
) | [static] |
Inserts a generic value to an array member position.
value | Source value object |
position | Index of the member |
args | Variable argument |
static Eina_Bool eina_value_array_vset | ( | Eina_Value * | value, |
unsigned int | position, | ||
va_list | args | ||
) | [static] |
Sets a generic value to an array member.
value | Source value object |
position | Index of the member |
args | Variable argument |