Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_data_type.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Adaptive Framework Data Type Header
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_DATA_TYPE_H__
10 #define __AFW_DATA_TYPE_H__
11 
12 #include "afw_interface.h"
13 
30 
34 
38 
39 #define AFW_DATA_TYPE_EQUAL(A_DATATYPE_1_, A_DATATYPE_2_) \
40 ((A_DATATYPE_1_) == (A_DATATYPE_2_))
41 
42 #define AFW_DATA_TYPE_ASSERT_EQUAL(A_DATATYPE_1_, A_DATATYPE_2_, A_SCOPE) \
43 if (!AFW_DATA_TYPE_EQUAL(A_DATATYPE_1_,A_DATATYPE_2_)) { \
44  AFW_THROW_ERROR_Z(cast_error, "Type safe exception.", A_SCOPE); \
45 }
46 
47 
60  const afw_object_t *object,
61  const afw_pool_t *p,
62  afw_xctx_t *xctx);
63 
64 
65 AFW_END_DECLARES
66 
69 #endif /* __AFW_DATA_TYPE_H__ */
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE(type)
Declare a public afw function.
Interfaceafw_interface header.
AFW_DECLARE_CONST_DATA(afw_utf8_t) afw_s_200
afw_utf8_t for string 200
_Bool afw_boolean_t
Definition: afw_common.h:373
afw_data_type_boolean_true
afw_boolean_t true value.
Definition: afw_data_type.h:33
afw_data_type_boolean_false
afw_boolean_t false value.
Definition: afw_data_type.h:37
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.
Interface afw_object public struct.
Interface afw_pool public struct.
Interface afw_xctx public struct.