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_Value * | eina_value_list_new (const Eina_Value_Type *subtype) |
Create generic value storage of type list. More... | |
static Eina_Bool | eina_value_list_setup (Eina_Value *value, const Eina_Value_Type *subtype) |
Initialize generic value storage of type list. More... | |
static unsigned int | eina_value_list_count (const Eina_Value *value) |
Query number of elements in value of list type. More... | |
static Eina_Bool | eina_value_list_remove (Eina_Value *value, unsigned int position) |
Remove element at given position in value of list type. More... | |
static Eina_Bool | eina_value_list_set (Eina_Value *value, unsigned int position,...) |
Set the generic value in an list member. More... | |
static Eina_Bool | eina_value_list_get (const Eina_Value *value, unsigned int position,...) |
Get the generic value from an list member. More... | |
static Eina_Bool | eina_value_list_insert (Eina_Value *value, unsigned int position,...) |
Insert the generic value in an list member position. More... | |
static Eina_Bool | eina_value_list_append (Eina_Value *value,...) |
Append the generic value in an list. More... | |
static Eina_Bool | eina_value_list_vset (Eina_Value *value, unsigned int position, va_list args) |
Set the generic value in an list member. More... | |
static Eina_Bool | eina_value_list_vget (const Eina_Value *value, unsigned int position, va_list args) |
Get the generic value from an list member. More... | |
static Eina_Bool | eina_value_list_vinsert (Eina_Value *value, unsigned int position, va_list args) |
Insert the generic value in an list member position. More... | |
static Eina_Bool | eina_value_list_vappend (Eina_Value *value, va_list args) |
Append the generic value in an list. More... | |
static Eina_Bool | eina_value_list_pset (Eina_Value *value, unsigned int position, const void *ptr) |
Set the generic value in an list member from pointer. More... | |
static Eina_Bool | eina_value_list_pget (const Eina_Value *value, unsigned int position, void *ptr) |
Get the generic value to pointer from an list member. More... | |
static Eina_Bool | eina_value_list_pinsert (Eina_Value *value, unsigned int position, const void *ptr) |
Insert the generic value in an list member position from pointer. More... | |
static Eina_Bool | eina_value_list_pappend (Eina_Value *value, const void *ptr) |
Append the generic value in an list from pointer. More... | |
Eina_Value* eina_value_list_new | ( | const Eina_Value_Type * | subtype | ) |
Create generic value storage of type list.
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.
|
inlinestatic |
Initialize generic value storage of type list.
value | value object |
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 EO_DBG_INFO_LIST_APPEND().
|
inlinestatic |
Query number of elements in value of list type.
value | value object. |
|
inlinestatic |
Remove element at given position in value of list type.
value | value object. |
position | index of the member |
|
inlinestatic |
Set the generic value in an list member.
value | source value object |
position | index of the member |
The variable argument is dependent on chosen subtype. The list for basic types:
|
inlinestatic |
Get the generic value from an list member.
value | source value object |
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 |
Insert the generic value in an list member position.
value | source value object |
position | index of the member |
The variable argument is dependent on chosen subtype. The list for basic types:
|
inlinestatic |
Append the generic value in an list.
value | source value object |
The variable argument is dependent on chosen subtype. The list for basic types:
|
inlinestatic |
Set the generic value in an list member.
value | source value object |
position | index of the member |
args | variable argument |
|
inlinestatic |
Get the generic value from an list 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.
|
inlinestatic |
Insert the generic value in an list member position.
value | source value object |
position | index of the member |
args | variable argument |
|
inlinestatic |
Append the generic value in an list.
value | source value object |
args | variable argument |
|
inlinestatic |
Set the generic value in an list member from 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:
|
inlinestatic |
Get the generic value to pointer from an list 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:
|
inlinestatic |
Insert the generic value in an list member position from 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:
|
inlinestatic |
Append the generic value in an list from 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:
Referenced by EO_DBG_INFO_LIST_APPEND().