Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Files | Macros | Functions

Files

file  afw_list_setter_impl_declares.h
 Interface afw_interface implementation declares.
 

Macros

#define __AFW_LIST_SETTER_IMPL_DECLARES_H__   1
 
#define _AFW_IMPLEMENTATION_ID_   "unspecified"
 
#define _AFW_IMPLEMENTATION_SPECIFIC_   NULL
 
#define _AFW_IMPLEMENTATION_SOURCE_FILE_   __FILE__
 

Functions

 impl_afw_list_setter_set_immutable (const afw_list_setter_t *instance, afw_xctx_t *xctx)
 
 impl_afw_list_setter_determine_data_type_and_set_immutable (const afw_list_setter_t *instance, afw_xctx_t *xctx)
 
 impl_afw_list_setter_add_internal (const afw_list_setter_t *instance, const afw_data_type_t *data_type, const void *internal, afw_xctx_t *xctx)
 
 impl_afw_list_setter_add_value (const afw_list_setter_t *instance, const afw_value_t *value, afw_xctx_t *xctx)
 
 impl_afw_list_setter_insert_internal (const afw_list_setter_t *instance, const afw_data_type_t *data_type, const void *internal, afw_size_t index, afw_xctx_t *xctx)
 
 impl_afw_list_setter_insert_value (const afw_list_setter_t *instance, const afw_value_t *value, afw_size_t index, afw_xctx_t *xctx)
 
 impl_afw_list_setter_remove_all_values (const afw_list_setter_t *instance, afw_xctx_t *xctx)
 
 impl_afw_list_setter_remove_internal (const afw_list_setter_t *instance, const afw_data_type_t *data_type, const void *internal, afw_xctx_t *xctx)
 
 impl_afw_list_setter_remove_value (const afw_list_setter_t *instance, const afw_value_t *value, afw_xctx_t *xctx)
 
 impl_afw_list_setter_set_value_by_index (const afw_list_setter_t *instance, afw_size_t index, const afw_value_t *value, afw_xctx_t *xctx)
 

Detailed Description

This file should only be included in c source files that implement interface afw_list_setter.

You can find a skeleton for using this #include file in the corresponding source directory in file generated/interface_closet/skeleton_afw_list_setter.c.

Mutiple *_impl.declares.h can be included in each c source file, but only one for each interface name.

After the #include for afw_list_setter_impl_declares.h:

  1. declarations will exist for all of the interfaces methods with names of impl_afw_list_setter_ followed by the method name.
  2. rti will be defined with a name of impl_afw_list_setter_rti.
  3. inf will be defined with a name of impl_afw_list_setter_inf.

Before including, define the following symbols:

Example:

static const sometype_t impl_myimpl_stuff = {
...
};
#define AFW_IMPLEMENTATION_ID "myimpl"
#define AFW_IMPLEMENTATION_SPECIFIC &impl_myimpl_stuff
A second #include "afw_list_setter_impl_declares.h" can be specified if
" * #define "AFW_LIST_SETTER_INF_ONLY" is specified to generate inf only."
Interface afw_interface implementation declares.

Function Documentation

◆ impl_afw_list_setter_set_value_by_index()

impl_afw_list_setter_set_value_by_index ( const afw_list_setter_t instance,
afw_size_t  index,
const afw_value_t value,
afw_xctx_t xctx 
)
Todo:
FIXME: Consider reducing reference count.

Definition at line 636 of file afw_list_memory.c.