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

Files

file  afw_adaptor_impl_index_cursor_impl_declares.h
 Interface afw_interface implementation declares.
 

Macros

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

Functions

 impl_afw_adaptor_impl_index_cursor_release (const afw_adaptor_impl_index_cursor_t *instance, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_cursor_get_next_object (const afw_adaptor_impl_index_cursor_t *instance, const afw_pool_t *pool, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_cursor_contains_object (const afw_adaptor_impl_index_cursor_t *instance, const afw_object_t *object, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_cursor_inner_join (const afw_adaptor_impl_index_cursor_t *instance, const afw_adaptor_impl_index_cursor_t *cursor, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_cursor_get_count (const afw_adaptor_impl_index_cursor_t *instance, size_t *count, afw_xctx_t *xctx)
 

Detailed Description

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

You can find a skeleton for using this #include file in the corresponding source directory in file generated/interface_closet/skeleton_afw_adaptor_impl_index_cursor.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_adaptor_impl_index_cursor_impl_declares.h:

  1. declarations will exist for all of the interfaces methods with names of impl_afw_adaptor_impl_index_cursor_ followed by the method name.
  2. rti will be defined with a name of impl_afw_adaptor_impl_index_cursor_rti.
  3. inf will be defined with a name of impl_afw_adaptor_impl_index_cursor_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_adaptor_impl_index_cursor_impl_declares.h" can be specified if
" * #define "AFW_ADAPTOR_IMPL_INDEX_CURSOR_INF_ONLY" is specified to generate inf only."
Interface afw_interface implementation declares.

Function Documentation

◆ impl_afw_adaptor_impl_index_cursor_contains_object()

impl_afw_adaptor_impl_index_cursor_contains_object ( const afw_adaptor_impl_index_cursor_t instance,
const afw_object_t object,
afw_xctx_t xctx 
)
Todo:
FIXME:: This routine only works for afw_query_criteria_filter_op_id_eq. In order to support other operators, we need to scan sequentially instead of letting LMDB try to find a specific key/data.

Definition at line 1137 of file afw_lmdb_internal.c.

◆ impl_afw_adaptor_impl_index_cursor_inner_join()

impl_afw_adaptor_impl_index_cursor_inner_join ( const afw_adaptor_impl_index_cursor_t instance,
const afw_adaptor_impl_index_cursor_t cursor,
afw_xctx_t xctx 
)
Todo:
FIXME: Jeremy

Definition at line 1202 of file afw_lmdb_internal.c.