Data Structures | |
struct | _Eina_Value_List |
Used to store the list and its subtype. More... | |
Typedefs | |
typedef struct _Eina_Value_List | Eina_Value_List |
Value type for EINA_VALUE_TYPE_LIST. More... | |
Functions | |
EINA_API Eina_Value * | eina_value_list_new (const Eina_Value_Type *subtype) |
Creates generic value storage of type list. More... | |
static Eina_Bool | eina_value_list_setup (Eina_Value *value, const Eina_Value_Type *subtype) |
Initializes generic value storage of type list. More... | |
static unsigned int | eina_value_list_count (const Eina_Value *value) |
Queries number of elements in value of list type. More... | |
static Eina_Bool | eina_value_list_remove (Eina_Value *value, unsigned int position) |
Removes element at given position in value of list type. More... | |
static Eina_Bool | eina_value_list_set (Eina_Value *value, unsigned int position,...) |
Sets the generic value in a list member. More... | |
static Eina_Bool | eina_value_list_get (const Eina_Value *value, unsigned int position,...) |
Gets the generic value from a list member. More... | |
static Eina_Bool | eina_value_list_insert (Eina_Value *value, unsigned int position,...) |
Inserts the generic value in a list member position. More... | |
static Eina_Bool | eina_value_list_append (Eina_Value *value,...) |
Appends the generic value in a list. More... | |
static Eina_Bool | eina_value_list_vset (Eina_Value *value, unsigned int position, va_list args) |
Sets the generic value in a list member. More... | |
static Eina_Bool | eina_value_list_vget (const Eina_Value *value, unsigned int position, va_list args) |
Gets the generic value from a list member. More... | |
static Eina_Bool | eina_value_list_vinsert (Eina_Value *value, unsigned int position, va_list args) |
Inserts the generic value in a list member position. More... | |
static Eina_Bool | eina_value_list_vappend (Eina_Value *value, va_list args) |
Appends the generic value in a list. More... | |
static Eina_Bool | eina_value_list_pset (Eina_Value *value, unsigned int position, const void *ptr) |
Sets the generic value in a list member from pointer. More... | |
static Eina_Bool | eina_value_list_pget (const Eina_Value *value, unsigned int position, void *ptr) |
Gets the generic value to pointer from a list member. More... | |
static Eina_Bool | eina_value_list_pinsert (Eina_Value *value, unsigned int position, const void *ptr) |
Inserts the generic value in a list member position from pointer. More... | |
static Eina_Bool | eina_value_list_pappend (Eina_Value *value, const void *ptr) |
Appends the generic value in a list from pointer. More... | |
EINA_API Eina_Value * eina_value_list_new | ( | const Eina_Value_Type * | subtype | ) |
Creates generic value storage of type list.
[in] | subtype | How to manage this list members. |
NULL
on failure.Create a new generic value storage of type list. The members are managed using the description specified by subtype.
On failure, NULL
is returned.
References eina_mempool_free(), eina_mempool_malloc(), EINA_SAFETY_ON_FALSE_RETURN_VAL, eina_value_list_setup(), and eina_value_type_check().
|
inlinestatic |
Initializes generic value storage of type list.
[out] | value | Value object |
[in] | subtype | How to manage this list members. |
Initializes new generic value storage of type list with the given subtype.
This is the same as calling eina_value_set() with EINA_VALUE_TYPE_LIST followed by eina_value_pset() with the Eina_Value_List description configured.
On failure, EINA_FALSE is returned.
Referenced by eina_value_list_new().
|
inlinestatic |
Queries number of elements in value of list type.
[in] | value | value object. |
|
inlinestatic |
Removes element at given position in value of list type.
[in,out] | value | value object. |
[in] | position | index of the member |
|
inlinestatic |
Sets the generic value in a list member.
[in,out] | value | Source value object |
[in] | position | Index of the member |
The variable argument is dependent on chosen subtype. The list for basic types:
|
inlinestatic |
Gets the generic value from a list member.
[in] | value | Source value object |
[in] | position | Index of the member |
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.
The variable argument is dependent on chosen subtype. The list for basic types:
|
inlinestatic |
Inserts the generic value in a list member position.
[in,out] | value | Source value object |
[in] | position | Index of the member |
The variable argument is dependent on chosen subtype. The list for basic types:
|
inlinestatic |
Appends the generic value in a list.
[in,out] | value | Source value object |
[in] | ... | Variable arguments |
The variable argument is dependent on chosen subtype. The list for basic types:
|
inlinestatic |
Sets the generic value in a list member.
[in,out] | value | Source value object |
[in] | position | Index of the member |
[in] | args | Variable argument |
|
inlinestatic |
Gets the generic value from a list member.
[in] | value | Source value object |
[in] | position | Index of the member |
[in] | 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.
|
inlinestatic |
Inserts the generic value in a list member position.
[in,out] | value | Source value object |
[in] | position | Index of the member |
[in] | args | Variable argument |
|
inlinestatic |
Appends the generic value in a list.
[in,out] | value | Source value object |
[in] | args | Variable argument |
|
inlinestatic |
Sets the generic value in a list member from pointer.
[in,out] | value | Source value object |
[in] | position | Index of the member |
[in] | ptr | Pointer to specify the contents. |
The pointer type is dependent on chosen value type. The list for basic types:
|
inlinestatic |
Gets the generic value to pointer from a list member.
[in] | value | Source value object |
[in] | position | Index of the member |
[out] | 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:
|
inlinestatic |
Inserts the generic value in a list member position from pointer.
[in,out] | value | Source value object |
[in] | position | Index of the member |
[in] | ptr | Pointer to specify the contents. |
The pointer type is dependent on chosen value type. The list for basic types:
|
inlinestatic |
Appends the generic value in a list from pointer.
[in,out] | value | Source value object |
[in] | ptr | Pointer to specify the contents. |
The pointer type is dependent on chosen value type. The list for basic types: