Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_list_impl.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Interface afw_list implementation helpers.
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_LIST_IMPL_H__
10 #define __AFW_LIST_IMPL_H__
11 
12 #include "afw_interface.h"
13 
26 
27 #define AFW_LIST_IMPL_ASSERT_SELF_MUTABLE \
28 do { \
29  if (self->immutable) { \
30  AFW_OBJECT_ERROR_OBJECT_IMMUTABLE; \
31  } \
32 } while (0)
33 
34 
35 
52  const afw_list_t *instance,
53  afw_integer_t index,
54  const afw_pool_t *p,
55  afw_xctx_t *xctx);
56 
57 
58 
84 AFW_DECLARE(const afw_value_t *)
86  const afw_list_t *instance,
87  afw_integer_t index,
88  const afw_pool_t *p,
89  afw_xctx_t *xctx);
90 
91 
108  const afw_list_t *instance,
109  const afw_iterator_t **iterator,
110  const afw_pool_t *p,
111  afw_xctx_t *xctx);
112 
113 
139 AFW_DECLARE(const afw_value_t *)
141  const afw_list_t *instance,
142  const afw_iterator_t **iterator,
143  const afw_pool_t *p,
144  afw_xctx_t *xctx);
145 
146 
147 AFW_END_DECLARES
148 
151 #endif /* __AFW_LIST_IMPL_H__ */
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE_INTERNAL(type)
Declare an internal function for /src/afw/ source*.h files.
#define AFW_DECLARE(type)
Declare a public afw function.
Interfaceafw_interface header.
struct afw_iterator_s afw_iterator_t
apr_int64_t afw_integer_t
typedef for big signed int.
Definition: afw_common.h:321
afw_list_impl_get_next_entry_meta(const afw_list_t *instance, const afw_iterator_t **iterator, const afw_pool_t *p, afw_xctx_t *xctx)
A general impl of method get_next_entry_meta for interface afw_list.
Definition: afw_list_impl.c:51
const afw_value_t * afw_list_external_impl_get_entry_meta(const afw_list_t *instance, afw_integer_t index, const afw_pool_t *p, afw_xctx_t *xctx)
A general impl of method get_entry_meta for interface afw_list that can be accessed externally.
Definition: afw_list_impl.c:80
afw_list_impl_get_entry_meta(const afw_list_t *instance, afw_integer_t index, const afw_pool_t *p, afw_xctx_t *xctx)
A general impl of method get_entry_meta for interface afw_list.
Definition: afw_list_impl.c:22
const afw_value_t * afw_list_external_impl_get_next_entry_meta(const afw_list_t *instance, const afw_iterator_t **iterator, const afw_pool_t *p, afw_xctx_t *xctx)
A general impl of method get_next_entry_meta for interface afw_list that can be accessed externally.
Definition: afw_list_impl.c:97
Interface afw_list public struct.
Interface afw_pool public struct.
Interface afw_value public struct.
Interface afw_xctx public struct.