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_impl_declares.h
 Interface afw_interface implementation declares.
 

Macros

#define __AFW_ADAPTOR_IMPL_INDEX_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_open (const afw_adaptor_impl_index_t *instance, const afw_utf8_t *object_type_id, const afw_utf8_t *key, afw_boolean_t integer, afw_boolean_t unique, afw_boolean_t reverse, const afw_pool_t *pool, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_release (const afw_adaptor_impl_index_t *instance, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_get_index_definitions (const afw_adaptor_impl_index_t *instance, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_update_index_definitions (const afw_adaptor_impl_index_t *instance, const afw_object_t *indexDefinitions, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_add (const afw_adaptor_impl_index_t *instance, const afw_utf8_t *object_type_id, const afw_utf8_t *object_id, const afw_utf8_t *key, const afw_utf8_t *value, afw_boolean_t unique, const afw_pool_t *pool, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_delete (const afw_adaptor_impl_index_t *instance, const afw_utf8_t *object_type_id, const afw_utf8_t *object_id, const afw_utf8_t *key, const afw_utf8_t *value, const afw_pool_t *pool, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_replace (const afw_adaptor_impl_index_t *instance, const afw_utf8_t *object_type_id, const afw_utf8_t *object_id, const afw_utf8_t *key, const afw_utf8_t *old_value, const afw_utf8_t *new_value, const afw_pool_t *pool, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_drop (const afw_adaptor_impl_index_t *instance, const afw_utf8_t *object_type_id, const afw_utf8_t *key, const afw_pool_t *pool, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_open_cursor (const afw_adaptor_impl_index_t *instance, const afw_utf8_t *object_type_id, const afw_utf8_t *index_key, int operator, const afw_utf8_t *value, afw_boolean_t unique, const afw_pool_t *pool, afw_xctx_t *xctx)
 
 impl_afw_adaptor_impl_index_get_session (const afw_adaptor_impl_index_t *instance, afw_xctx_t *xctx)
 

Detailed Description

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

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.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_impl_declares.h:

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

Function Documentation

◆ impl_afw_adaptor_impl_index_add()

impl_afw_adaptor_impl_index_add ( const afw_adaptor_impl_index_t instance,
const afw_utf8_t object_type_id,
const afw_utf8_t object_id,
const afw_utf8_t key,
const afw_utf8_t value,
afw_boolean_t  unique,
const afw_pool_t pool,
afw_xctx_t xctx 
)
Todo:
FIXME: this basically avoids indexing an empty string, so we should determine if this is an error condition or not

Definition at line 222 of file afw_lmdb_index.c.

◆ impl_afw_adaptor_impl_index_delete()

impl_afw_adaptor_impl_index_delete ( const afw_adaptor_impl_index_t instance,
const afw_utf8_t object_type_id,
const afw_utf8_t object_id,
const afw_utf8_t key,
const afw_utf8_t value,
const afw_pool_t pool,
afw_xctx_t xctx 
)
Todo:
FIXME: this basically avoids indexing an empty string, so we should determine if this is an error condition or not

Definition at line 291 of file afw_lmdb_index.c.