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

Files

file  afw_data_type.h
 Header for Adaptive Framework data type.
 

Macros

#define AFW_DATA_TYPE_EQUAL(A_DATATYPE_1_, A_DATATYPE_2_)   ((A_DATATYPE_1_) == (A_DATATYPE_2_))
 
#define AFW_DATA_TYPE_ASSERT_EQUAL(A_DATATYPE_1_, A_DATATYPE_2_, A_SCOPE)
 

Functions

const afw_object_tafw_data_type_object_create_clone_to_managed_object (const afw_object_t *object, const afw_pool_t *p, afw_xctx_t *xctx)
 Clone an object to a managed object. More...
 

Variables

 afw_data_type_boolean_true
 afw_boolean_t true value.
 
 afw_data_type_boolean_false
 afw_boolean_t false value.
 

Detailed Description

Common to all Adaptive Framework applications

Macro Definition Documentation

◆ AFW_DATA_TYPE_ASSERT_EQUAL

#define AFW_DATA_TYPE_ASSERT_EQUAL (   A_DATATYPE_1_,
  A_DATATYPE_2_,
  A_SCOPE 
)
Value:
if (!AFW_DATA_TYPE_EQUAL(A_DATATYPE_1_,A_DATATYPE_2_)) { \
AFW_THROW_ERROR_Z(cast_error, "Type safe exception.", A_SCOPE); \
}

Definition at line 42 of file afw_data_type.h.

Function Documentation

◆ afw_data_type_object_create_clone_to_managed_object()

const afw_object_t* afw_data_type_object_create_clone_to_managed_object ( const afw_object_t object,
const afw_pool_t p,
afw_xctx_t xctx 
)

Clone an object to a managed object.

Parameters
objectto clone.
pused for cloned object.
xctxof caller.
Returns
cloned object.

This will use afw_object_create_managed() to create the cloned object.

Definition at line 1520 of file afw_data_type.c.