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

Files

file  afw_list_impl.h
 Helpers for list implementation development.
 

Macros

#define AFW_LIST_IMPL_ASSERT_SELF_MUTABLE
 

Functions

 afw_list_impl_get_entry_meta (const afw_list_t *instance, afw_integer_t index, const afw_pool_t *p, afw_xctx_t *xctx)
 A general impl of method get_entry_meta for interface afw_list. More...
 
const afw_value_tafw_list_external_impl_get_entry_meta (const afw_list_t *instance, afw_integer_t index, const afw_pool_t *p, afw_xctx_t *xctx)
 A general impl of method get_entry_meta for interface afw_list that can be accessed externally. More...
 
 afw_list_impl_get_next_entry_meta (const afw_list_t *instance, const afw_iterator_t **iterator, const afw_pool_t *p, afw_xctx_t *xctx)
 A general impl of method get_next_entry_meta for interface afw_list. More...
 
const afw_value_tafw_list_external_impl_get_next_entry_meta (const afw_list_t *instance, const afw_iterator_t **iterator, const afw_pool_t *p, afw_xctx_t *xctx)
 A general impl of method get_next_entry_meta for interface afw_list that can be accessed externally. More...
 

Detailed Description

Macro Definition Documentation

◆ AFW_LIST_IMPL_ASSERT_SELF_MUTABLE

#define AFW_LIST_IMPL_ASSERT_SELF_MUTABLE
Value:
do { \
if (self->immutable) { \
AFW_OBJECT_ERROR_OBJECT_IMMUTABLE; \
} \
} while (0)

Definition at line 27 of file afw_list_impl.h.

Function Documentation

◆ afw_list_external_impl_get_entry_meta()

const afw_value_t* afw_list_external_impl_get_entry_meta ( const afw_list_t instance,
afw_integer_t  index,
const afw_pool_t p,
afw_xctx_t xctx 
)

A general impl of method get_entry_meta for interface afw_list that can be accessed externally.

Parameters
instanceof list.
indexof entry to get meta for.
pfor result.
xctxof caller.
Returns
meta list.

Function afw_list_impl_get_entry_meta() can not be used directly in separate dlls or exes.

Use the following implementation of impl_afw_list_get_entry_meta() to access afw_list_impl_get_entry_meta():

const afw_value_t * impl_afw_list_get_entry_meta( const afw_list_t * instance, afw_integer_t index, afw_xctx_t *xctx) { return afw_list_external_impl_get_entry_meta( instance, index, p, xctx); }

Definition at line 80 of file afw_list_impl.c.

◆ afw_list_external_impl_get_next_entry_meta()

const afw_value_t* afw_list_external_impl_get_next_entry_meta ( const afw_list_t instance,
const afw_iterator_t **  iterator,
const afw_pool_t p,
afw_xctx_t xctx 
)

A general impl of method get_next_entry_meta for interface afw_list that can be accessed externally.

Parameters
instanceof list.
iteratorpointer (set to NULL before first call)
pfor result.
xctxof caller.
Returns
list value of list entry's meta.

Function afw_list_impl_get_next_entry_meta() can not be used directly in separate dlls or exes.

Use the following implementation of impl_afw_list_get_next_entry_meta() to access afw_list_impl_get_next_entry_meta():

const afw_value_t * impl_afw_list_get_next_entry_meta( const afw_list_t *instance, const afw_iterator_t **iterator, afw_xctx_t *xctx) { return afw_list_external_impl_get_next_entry_meta( instance, iterator, p, xctx); }

Definition at line 97 of file afw_list_impl.c.

◆ afw_list_impl_get_entry_meta()

afw_list_impl_get_entry_meta ( const afw_list_t instance,
afw_integer_t  index,
const afw_pool_t p,
afw_xctx_t xctx 
)

A general impl of method get_entry_meta for interface afw_list.

Parameters
instanceof list.
indexof entry to get meta for.
pfor result.
xctxof caller.
Returns
meta list.

To use in implementation, add the following lines after the #includes in the implementation source:

#define impl_afw_list_get_entry_meta \ afw_list_impl_get_entry_meta

Definition at line 22 of file afw_list_impl.c.

◆ afw_list_impl_get_next_entry_meta()

afw_list_impl_get_next_entry_meta ( const afw_list_t instance,
const afw_iterator_t **  iterator,
const afw_pool_t p,
afw_xctx_t xctx 
)

A general impl of method get_next_entry_meta for interface afw_list.

Parameters
instanceof list.
iteratorpointer (set to NULL before first call)
pfor result.
xctxof caller.
Returns
list value of list entry's meta.

To use in implementation, add the following lines after the #includes in the implementation source:

#define impl_afw_list_get_next_entry_meta \ afw_list_impl_get_next_entry_meta

Definition at line 51 of file afw_list_impl.c.