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

Modules

 afw_data_type
 

Data Structures

struct  afw_data_type_s
 Interface afw_data_type public struct. More...
 
struct  afw_data_type_inf_s
 Interface afw_data_type_inf_s struct. More...
 

Macros

#define AFW_DATA_TYPE_INTERFACE_NAME   "afw_data_type"
 define for interface afw_data_type name.
 
#define afw_data_type_internal_to_utf8(instance, from_internal, p, xctx)
 Call method internal_to_utf8 of interface afw_data_type. More...
 
#define afw_data_type_utf8_to_internal(instance, to_internal, from_utf8, p, xctx)
 Call method utf8_to_internal of interface afw_data_type. More...
 
#define afw_data_type_compare_internal(instance, internal1, internal2, xctx)
 Call method compare_internal of interface afw_data_type. More...
 
#define afw_data_type_convert_internal(instance, to_internal, from_internal, to_data_type, p, xctx)
 Call method convert_internal of interface afw_data_type. More...
 
#define afw_data_type_clone_internal(instance, to_internal, from_internal, p, xctx)
 Call method clone_internal of interface afw_data_type. More...
 
#define afw_data_type_value_compiler_listing(instance, writer, value, xctx)
 Call method value_compiler_listing of interface afw_data_type. More...
 
#define afw_data_type_write_as_expression(instance, writer, from_internal, xctx)
 Call method write_as_expression of interface afw_data_type. More...
 

Typedefs

typedef const afw_utf8_t *(* afw_data_type_internal_to_utf8_t) (const afw_data_type_t *instance, const void *from_internal, const afw_pool_t *p, afw_xctx_t *xctx)
 
typedef void(* afw_data_type_utf8_to_internal_t) (const afw_data_type_t *instance, void *to_internal, const afw_utf8_t *from_utf8, const afw_pool_t *p, afw_xctx_t *xctx)
 
typedef int(* afw_data_type_compare_internal_t) (const afw_data_type_t *instance, const void *internal1, const void *internal2, afw_xctx_t *xctx)
 
typedef void(* afw_data_type_convert_internal_t) (const afw_data_type_t *instance, void *to_internal, const void *from_internal, const afw_data_type_t *to_data_type, const afw_pool_t *p, afw_xctx_t *xctx)
 
typedef void(* afw_data_type_clone_internal_t) (const afw_data_type_t *instance, void *to_internal, const void *from_internal, const afw_pool_t *p, afw_xctx_t *xctx)
 
typedef void(* afw_data_type_value_compiler_listing_t) (const afw_data_type_t *instance, const afw_writer_t *writer, const afw_value_t *value, afw_xctx_t *xctx)
 
typedef void(* afw_data_type_write_as_expression_t) (const afw_data_type_t *instance, const afw_writer_t *writer, const void *from_internal, afw_xctx_t *xctx)
 

Detailed Description

Adaptive Data Type.

Macro Definition Documentation

◆ afw_data_type_clone_internal

#define afw_data_type_clone_internal (   instance,
  to_internal,
  from_internal,
  p,
  xctx 
)
Value:
(instance)->inf->clone_internal( \
(instance), \
(to_internal), \
(from_internal), \
(p), \
(xctx) \
)

Call method clone_internal of interface afw_data_type.

Parameters
instancePointer to this data type instance.
to_internalThe address of the place to return result. This place must be the correct size based on data type (c_type_size) of to_data_type.
from_internalValue of correct cType to of this data type to convert.
pPool to use to hold returned value.
xctxThis is the caller's xctx.

Definition at line 2289 of file afw_interface.h.

◆ afw_data_type_compare_internal

#define afw_data_type_compare_internal (   instance,
  internal1,
  internal2,
  xctx 
)
Value:
(instance)->inf->compare_internal( \
(instance), \
(internal1), \
(internal2), \
(xctx) \
)

Call method compare_internal of interface afw_data_type.

Parameters
instancePointer to this data type instance.
internal1First value of correct cType to compare.
internal2Second value of correct cType to compare.
xctxThis is the caller's xctx.

Definition at line 2238 of file afw_interface.h.

◆ afw_data_type_convert_internal

#define afw_data_type_convert_internal (   instance,
  to_internal,
  from_internal,
  to_data_type,
  p,
  xctx 
)
Value:
(instance)->inf->convert_internal( \
(instance), \
(to_internal), \
(from_internal), \
(to_data_type), \
(p), \
(xctx) \
)

Call method convert_internal of interface afw_data_type.

Parameters
instancePointer to this data type instance.
to_internalThe address of the place to return result. This place must be the correct size based on data type (c_type_size) of to_data_type.
from_internalValue of correct cType to of this data type to convert.
to_data_typeData type of to value.
pPool to use to hold returned value.
xctxThis is the caller's xctx.

Definition at line 2262 of file afw_interface.h.

◆ afw_data_type_internal_to_utf8

#define afw_data_type_internal_to_utf8 (   instance,
  from_internal,
  p,
  xctx 
)
Value:
(instance)->inf->internal_to_utf8( \
(instance), \
(from_internal), \
(p), \
(xctx) \
)

Call method internal_to_utf8 of interface afw_data_type.

Parameters
instancePointer to this data type instance.
from_internalInternal representation of this data type of correct cType to convert.
pPool to use to hold returned value.
xctxThis is the caller's xctx.

Definition at line 2194 of file afw_interface.h.

◆ afw_data_type_utf8_to_internal

#define afw_data_type_utf8_to_internal (   instance,
  to_internal,
  from_utf8,
  p,
  xctx 
)
Value:
(instance)->inf->utf8_to_internal( \
(instance), \
(to_internal), \
(from_utf8), \
(p), \
(xctx) \
)

Call method utf8_to_internal of interface afw_data_type.

Parameters
instancePointer to this data type instance.
to_internalThe address of the place to return result. This place must be the correct size based on data type (c_type_size).
from_utf8NFC UTF-8 representation for of this data type.
pPool to use to hold returned value.
xctxThis is the caller's xctx.

Definition at line 2216 of file afw_interface.h.

◆ afw_data_type_value_compiler_listing

#define afw_data_type_value_compiler_listing (   instance,
  writer,
  value,
  xctx 
)
Value:
(instance)->inf->value_compiler_listing( \
(instance), \
(writer), \
(value), \
(xctx) \
)

Call method value_compiler_listing of interface afw_data_type.

Parameters
instancePointer to this data type instance.
writerWriter instance to use.
valueValue to write to compiler listing.
xctxThis is the caller's xctx.

Definition at line 2311 of file afw_interface.h.

◆ afw_data_type_write_as_expression

#define afw_data_type_write_as_expression (   instance,
  writer,
  from_internal,
  xctx 
)
Value:
(instance)->inf->write_as_expression( \
(instance), \
(writer), \
(from_internal), \
(xctx) \
)

Call method write_as_expression of interface afw_data_type.

Parameters
instancePointer to this data type instance.
writerWriter instance to use.
from_internalValue of correct cType to of this data type to convert.
xctxThis is the caller's xctx.

Definition at line 2331 of file afw_interface.h.

Typedef Documentation

◆ afw_data_type_clone_internal_t

typedef void(* afw_data_type_clone_internal_t) (const afw_data_type_t *instance, void *to_internal, const void *from_internal, const afw_pool_t *p, afw_xctx_t *xctx)
See also
afw_data_type_clone_internal()

Definition at line 2150 of file afw_interface.h.

◆ afw_data_type_compare_internal_t

typedef int(* afw_data_type_compare_internal_t) (const afw_data_type_t *instance, const void *internal1, const void *internal2, afw_xctx_t *xctx)
See also
afw_data_type_compare_internal()

Definition at line 2132 of file afw_interface.h.

◆ afw_data_type_convert_internal_t

typedef void(* afw_data_type_convert_internal_t) (const afw_data_type_t *instance, void *to_internal, const void *from_internal, const afw_data_type_t *to_data_type, const afw_pool_t *p, afw_xctx_t *xctx)
See also
afw_data_type_convert_internal()

Definition at line 2140 of file afw_interface.h.

◆ afw_data_type_internal_to_utf8_t

typedef const afw_utf8_t*(* afw_data_type_internal_to_utf8_t) (const afw_data_type_t *instance, const void *from_internal, const afw_pool_t *p, afw_xctx_t *xctx)
See also
afw_data_type_internal_to_utf8()

Definition at line 2115 of file afw_interface.h.

◆ afw_data_type_utf8_to_internal_t

typedef void(* afw_data_type_utf8_to_internal_t) (const afw_data_type_t *instance, void *to_internal, const afw_utf8_t *from_utf8, const afw_pool_t *p, afw_xctx_t *xctx)
See also
afw_data_type_utf8_to_internal()

Definition at line 2123 of file afw_interface.h.

◆ afw_data_type_value_compiler_listing_t

typedef void(* afw_data_type_value_compiler_listing_t) (const afw_data_type_t *instance, const afw_writer_t *writer, const afw_value_t *value, afw_xctx_t *xctx)
See also
afw_data_type_value_compiler_listing()

Definition at line 2159 of file afw_interface.h.

◆ afw_data_type_write_as_expression_t

typedef void(* afw_data_type_write_as_expression_t) (const afw_data_type_t *instance, const afw_writer_t *writer, const void *from_internal, afw_xctx_t *xctx)
See also
afw_data_type_write_as_expression()

Definition at line 2167 of file afw_interface.h.