Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Typedefs | Functions | Variables
afw_list.h File Reference

Adaptive Framework afw_list interface helper header. More...

#include "afw_interface.h"

Go to the source code of this file.

Data Structures

struct  afw_list_wrapper_for_array_self_s
 Self for immutable list wrapper for a array. More...
 

Macros

#define AFW_LIST_ERROR_OBJECT_IMMUTABLE   AFW_THROW_ERROR_Z(read_only, "List immutable", xctx)
 
#define afw_list_of_create(data_type, p, xctx)    afw_list_create_with_options(0, data_type, p, xctx)
 Create an list of a specific data type in memory. More...
 
#define afw_list_create_generic(p, xctx)    afw_list_create_with_options(0, NULL, p, xctx)
 Create an value list in memory. More...
 
#define AFW_LIST_INITIALIZE_WRAPPER_FOR_ARRAY(instance, _internal, _indirect, _data_type, _count)
 Helper macro to fill out afw_list_wrapper_for_array_self_t. More...
 
#define AFW_LIST_INITIALIZE_WRAPPER_FOR_ARRAY_P(instance, _internal, _indirect, _data_type, _count, _p)
 Helper macro to fill out afw_list_wrapper_for_array_self_t. More...
 
#define afw_list_is_immutable(list, xctx)   (afw_list_get_setter(list, xctx) == NULL)
 Determine if list is immutable. More...
 

Typedefs

typedef struct afw_list_wrapper_for_array_self_s afw_list_wrapper_for_array_self_t
 Self for immutable list wrapper for a array. More...
 

Functions

const afw_list_tafw_list_create_with_options (int options, const afw_data_type_t *data_type, const afw_pool_t *p, afw_xctx_t *xctx)
 Create an list in memory with options. More...
 
const afw_list_tafw_list_const_create_array_of_objects (const afw_object_t *const *objects, afw_size_t count, const afw_pool_t *p, afw_xctx_t *xctx)
 Create an immutable list from an array of objects. More...
 
const afw_list_tafw_list_const_create_array_of_values (const afw_value_t *const *values, afw_size_t count, const afw_pool_t *p, afw_xctx_t *xctx)
 Create an immutable list from an array of values. More...
 
const afw_list_tafw_list_const_create_null_terminated_array_of_objects (const afw_object_t *const *objects, const afw_pool_t *p, afw_xctx_t *xctx)
 Create an immutable list from NULL terminated array of objects. More...
 
const afw_list_tafw_list_const_create_null_terminated_array_of_values (const afw_value_t *const *values, const afw_pool_t *p, afw_xctx_t *xctx)
 Create an immutable list from NULL terminated array of values. More...
 
const afw_list_tafw_list_create_or_clone (const afw_list_t *list, const afw_data_type_t *data_type, afw_boolean_t clone_values, const afw_pool_t *p, afw_xctx_t *xctx)
 Create a clone of a list in memory. More...
 
const afw_list_tafw_list_of_create_from_value (const afw_data_type_t *data_type, const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 Create a typed list from a value. More...
 
const afw_list_tafw_list_convert_to_list_of_strings (const afw_list_t *list, const afw_pool_t *p, afw_xctx_t *xctx)
 Convert a list to a list of strings. More...
 
 afw_list_create_wrapper_for_array (const void *array, afw_boolean_t indirect, const afw_data_type_t *data_type, afw_size_t count, const afw_pool_t *p, afw_xctx_t *xctx)
 Create a immutable list wrapper for an array. More...
 
 afw_list_of_utf8_get_next (const afw_list_t *instance, const afw_iterator_t **iterator, afw_xctx_t *xctx)
 Get next value from list whose data type cType is afw_utf8_t. More...
 
void afw_list_set_immutable (const afw_list_t *instance, afw_xctx_t *xctx)
 Set a list to immutable if not already. More...
 
const afw_data_type_tafw_list_determine_data_type_and_set_immutable (const afw_list_t *instance, afw_xctx_t *xctx)
 Set list to immutable and determine data type of entries. More...
 
void afw_list_add_internal (const afw_list_t *instance, const afw_data_type_t *data_type, const void *internal, afw_xctx_t *xctx)
 Call method add of interface afw_list_setter. More...
 
void afw_list_add_value (const afw_list_t *instance, const afw_value_t *value, afw_xctx_t *xctx)
 Call method add_value of interface afw_list_setter. More...
 
void afw_list_remove_all_values (const afw_list_t *instance, afw_xctx_t *xctx)
 Call method remove_all_values of interface afw_list_setter. More...
 
void afw_list_remove_internal (const afw_list_t *instance, const afw_data_type_t *data_type, const void *internal, afw_xctx_t *xctx)
 Call method remove of interface afw_list_setter. More...
 
void afw_list_remove_value (const afw_list_t *instance, const afw_value_t *value, afw_xctx_t *xctx)
 Call method remove_value of interface afw_list_setter. More...
 
void afw_list_set_value_by_index (const afw_list_t *instance, afw_size_t index, const afw_value_t *value, afw_xctx_t *xctx)
 Call method set_value_by_index of interface afw_list_setter. More...
 

Variables

 afw_list_wrapper_for_array_inf
 inf for afw_list_wrapper_for_array afw_list implementation. More...
 

Detailed Description

Adaptive Framework afw_list interface helper header.

Definition in file afw_list.h.