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

Properties callback object implementation. More...

#include "afw_internal.h"
#include "afw_object_impl_declares.h"
#include "afw_object_setter_impl_declares.h"

Go to the source code of this file.

Macros

#define impl_afw_object_get_meta    afw_object_impl_internal_get_meta
 
#define impl_afw_object_get_property_meta    afw_object_impl_internal_get_property_meta
 
#define impl_afw_object_get_next_property_meta    afw_object_impl_internal_get_next_property_meta
 
#define AFW_IMPLEMENTATION_ID   "properties_callback"
 
#define IMPL_ASSERT_MUTABLE(instance, xctx)
 

Functions

 afw_object_create_properties_callback (void *data, afw_size_t count, const afw_object_properties_callback_entry_t callbacks[], const afw_pool_t *p, afw_xctx_t *xctx)
 Create a mutable composite of unmutable objects. More...
 
void impl_afw_object_release (const afw_object_t *instance, afw_xctx_t *xctx)
 
void impl_afw_object_add_reference (const afw_object_t *instance, afw_xctx_t *xctx)
 
afw_size_t impl_afw_object_get_count (const afw_object_t *instance, afw_xctx_t *xctx)
 
const afw_value_timpl_afw_object_get_property (const afw_object_t *instance, const afw_utf8_t *property_name, afw_xctx_t *xctx)
 
const afw_value_timpl_afw_object_get_next_property (const afw_object_t *instance, const afw_iterator_t **iterator, const afw_utf8_t **property_name, afw_xctx_t *xctx)
 
afw_boolean_t impl_afw_object_has_property (const afw_object_t *instance, const afw_utf8_t *property_name, afw_xctx_t *xctx)
 
const afw_object_setter_timpl_afw_object_get_setter (const afw_object_t *instance, afw_xctx_t *xctx)
 
void impl_afw_object_setter_set_immutable (const afw_object_setter_t *instance, afw_xctx_t *xctx)
 
void impl_afw_object_setter_set_property (const afw_object_setter_t *instance, const afw_utf8_t *property_name, const afw_value_t *value, afw_xctx_t *xctx)
 

Detailed Description

Properties callback object implementation.

Definition in file afw_object_properties_callback.c.

Macro Definition Documentation

◆ IMPL_ASSERT_MUTABLE

#define IMPL_ASSERT_MUTABLE (   instance,
  xctx 
)
Value:
if (!(instance)->p) {\
AFW_THROW_ERROR_Z(general, \
"Can not set meta in a const object", xctx); \
}

Definition at line 34 of file afw_object_properties_callback.c.