1
1
/*
2
- * Copyright 2008-2022 Aerospike, Inc.
2
+ * Copyright 2008-2024 Aerospike, Inc.
3
3
*
4
4
* Portions may be licensed to Aerospike, Inc. under one or more contributor
5
5
* license agreements.
24
24
extern "C" {
25
25
#endif
26
26
27
- /******************************************************************************
28
- * TYPES
29
- *****************************************************************************/
27
+ //---------------------------------
28
+ // Types
29
+ //---------------------------------
30
30
31
31
/**
32
32
* Nested CDT context type.
33
33
*
34
34
* @relates as_operations
35
- * @ingroup as_operations_object
35
+ * @ingroup base_operations
36
36
*/
37
37
typedef enum {
38
38
AS_CDT_CTX_LIST_INDEX = 0x10 ,
@@ -50,7 +50,7 @@ typedef enum {
50
50
* Nested CDT context level.
51
51
*
52
52
* @relates as_operations
53
- * @ingroup as_operations_object
53
+ * @ingroup base_operations
54
54
*/
55
55
typedef struct as_cdt_ctx_item {
56
56
uint32_t type ;
@@ -65,15 +65,15 @@ typedef struct as_cdt_ctx_item {
65
65
* List of CDT context level(s).
66
66
*
67
67
* @relates as_operations
68
- * @ingroup as_operations_object
68
+ * @ingroup base_operations
69
69
*/
70
70
typedef struct as_cdt_ctx {
71
71
as_vector list ;
72
72
} as_cdt_ctx ;
73
73
74
- /******************************************************************************
75
- * MACROS
76
- *****************************************************************************/
74
+ //---------------------------------
75
+ // Macros
76
+ //---------------------------------
77
77
78
78
/**
79
79
* Initialize a stack allocated nested CDT context list.
@@ -92,20 +92,20 @@ typedef struct as_cdt_ctx {
92
92
* @param __cap The max number of context levels allowed.
93
93
*
94
94
* @relates as_operations
95
- * @ingroup as_operations_object
95
+ * @ingroup base_operations
96
96
*/
97
97
#define as_cdt_ctx_inita (__ctx , __cap ) as_vector_inita(&(__ctx)->list, sizeof(as_cdt_ctx_item), __cap)
98
98
99
- /******************************************************************************
100
- * FUNCTIONS
101
- *****************************************************************************/
99
+ //---------------------------------
100
+ // Functions
101
+ //---------------------------------
102
102
103
103
/**
104
104
* Initialize a stack allocated nested CDT context list, with item storage on the heap.
105
105
* Call as_cdt_ctx_destroy() when done with the context list.
106
106
*
107
107
* @relates as_operations
108
- * @ingroup as_operations_object
108
+ * @ingroup base_operations
109
109
*/
110
110
static inline void
111
111
as_cdt_ctx_init (as_cdt_ctx * ctx , uint32_t capacity )
@@ -118,7 +118,7 @@ as_cdt_ctx_init(as_cdt_ctx* ctx, uint32_t capacity)
118
118
* Call as_cdt_ctx_destroy() when done with the context list.
119
119
*
120
120
* @relates as_operations
121
- * @ingroup as_operations_object
121
+ * @ingroup base_operations
122
122
*/
123
123
static inline as_cdt_ctx *
124
124
as_cdt_ctx_create (uint32_t capacity )
@@ -130,7 +130,7 @@ as_cdt_ctx_create(uint32_t capacity)
130
130
* Destroy nested CDT context list and as_val based context items that were allocated on the heap.
131
131
*
132
132
* @relates as_operations
133
- * @ingroup as_operations_object
133
+ * @ingroup base_operations
134
134
*/
135
135
AS_EXTERN void
136
136
as_cdt_ctx_destroy (as_cdt_ctx * ctx );
@@ -148,7 +148,7 @@ as_cdt_ctx_destroy(as_cdt_ctx* ctx);
148
148
* </ul>
149
149
*
150
150
* @relates as_operations
151
- * @ingroup as_operations_object
151
+ * @ingroup base_operations
152
152
*/
153
153
static inline void
154
154
as_cdt_ctx_add_list_index (as_cdt_ctx * ctx , int index )
@@ -163,7 +163,7 @@ as_cdt_ctx_add_list_index(as_cdt_ctx* ctx, int index)
163
163
* Create list with given type at index offset.
164
164
*
165
165
* @relates as_operations
166
- * @ingroup as_operations_object
166
+ * @ingroup base_operations
167
167
*/
168
168
static inline void
169
169
as_cdt_ctx_add_list_index_create (as_cdt_ctx * ctx , int index , as_list_order order , bool pad )
@@ -183,7 +183,7 @@ as_cdt_ctx_add_list_index_create(as_cdt_ctx* ctx, int index, as_list_order order
183
183
* </ul>
184
184
*
185
185
* @relates as_operations
186
- * @ingroup as_operations_object
186
+ * @ingroup base_operations
187
187
*/
188
188
static inline void
189
189
as_cdt_ctx_add_list_rank (as_cdt_ctx * ctx , int rank )
@@ -198,7 +198,7 @@ as_cdt_ctx_add_list_rank(as_cdt_ctx* ctx, int rank)
198
198
* Lookup list by value. The ctx list takes ownership of val.
199
199
*
200
200
* @relates as_operations
201
- * @ingroup as_operations_object
201
+ * @ingroup base_operations
202
202
*/
203
203
static inline void
204
204
as_cdt_ctx_add_list_value (as_cdt_ctx * ctx , as_val * val )
@@ -222,7 +222,7 @@ as_cdt_ctx_add_list_value(as_cdt_ctx* ctx, as_val* val)
222
222
* </ul>
223
223
*
224
224
* @relates as_operations
225
- * @ingroup as_operations_object
225
+ * @ingroup base_operations
226
226
*/
227
227
static inline void
228
228
as_cdt_ctx_add_map_index (as_cdt_ctx * ctx , int index )
@@ -242,7 +242,7 @@ as_cdt_ctx_add_map_index(as_cdt_ctx* ctx, int index)
242
242
* </ul>
243
243
*
244
244
* @relates as_operations
245
- * @ingroup as_operations_object
245
+ * @ingroup base_operations
246
246
*/
247
247
static inline void
248
248
as_cdt_ctx_add_map_rank (as_cdt_ctx * ctx , int rank )
@@ -257,7 +257,7 @@ as_cdt_ctx_add_map_rank(as_cdt_ctx* ctx, int rank)
257
257
* Lookup map by key. The ctx list takes ownership of key.
258
258
*
259
259
* @relates as_operations
260
- * @ingroup as_operations_object
260
+ * @ingroup base_operations
261
261
*/
262
262
static inline void
263
263
as_cdt_ctx_add_map_key (as_cdt_ctx * ctx , as_val * key )
@@ -273,7 +273,7 @@ as_cdt_ctx_add_map_key(as_cdt_ctx* ctx, as_val* key)
273
273
* The ctx list takes ownership of key.
274
274
*
275
275
* @relates as_operations
276
- * @ingroup as_operations_object
276
+ * @ingroup base_operations
277
277
*/
278
278
static inline void
279
279
as_cdt_ctx_add_map_key_create (as_cdt_ctx * ctx , as_val * key , as_map_order order )
@@ -288,7 +288,7 @@ as_cdt_ctx_add_map_key_create(as_cdt_ctx* ctx, as_val* key, as_map_order order)
288
288
* Lookup map by value. The ctx list takes ownership of val.
289
289
*
290
290
* @relates as_operations
291
- * @ingroup as_operations_object
291
+ * @ingroup base_operations
292
292
*/
293
293
static inline void
294
294
as_cdt_ctx_add_map_value (as_cdt_ctx * ctx , as_val * val )
0 commit comments