Debian Codegraph @

u8stream/include/u8arena/universal_arena_list_element.h

raw symbols SCIP
1 /* File: universal_arena_list_element.h; Copyright and License: see below */
2
3 #ifndef UNIVERSAL_ARENA_LIST_ELEMENT_H
4 #define UNIVERSAL_ARENA_LIST_ELEMENT_H
5
6 /* public file for the doxygen documentation: */
7 /*!
8 * \file
9 * \brief is an element of a single-linked list.
10 */
11
12 /*!
13 * \brief attributes of the universal_arena_list_element
14 */
15 struct universal_arena_list_element_struct {
16 void* data; /*!< pointer to the data of the element */
17 struct universal_arena_list_element_struct* next; /*!< next element in list or NULL */
18 };
19
20 typedef struct universal_arena_list_element_struct universal_arena_list_element_t;
21
22 /*!
23 * \brief initializes the universal_arena_list_element_t
24 *
25 * \param this_ pointer to own object attributes
26 * \param data pointer to the data of the element
27 * \param next next element in list or NULL
28 */
29 static inline void universal_arena_list_element_init ( universal_arena_list_element_t *this_,
30 void* data,
31 universal_arena_list_element_t* next
32 );
33
34 /*!
35 * \brief destroys the universal_arena_list_element_t
36 *
37 * \param this_ pointer to own object attributes
38 */
39 static inline void universal_arena_list_element_destroy ( universal_arena_list_element_t *this_ );
40
41 /*!
42 * \brief gets the data of universal_arena_list_element_t
43 *
44 * \param this_ pointer to own object attributes
45 * \return pointer to data
46 */
47 static inline void* universal_arena_list_element_get_data ( universal_arena_list_element_t *this_ );
48
49 /*!
50 * \brief gets the next element after this universal_arena_list_element_t
51 *
52 * \param this_ pointer to own object attributes
53 * \return pointer to next
54 */
55 static inline universal_arena_list_element_t* universal_arena_list_element_get_next ( universal_arena_list_element_t *this_ );
56
57 /*!
58 * \brief sets the next element after this universal_arena_list_element_t
59 *
60 * \param this_ pointer to own object attributes
61 * \param next next element in list or NULL
62 */
63 static inline void universal_arena_list_element_set_next ( universal_arena_list_element_t *this_,
64 universal_arena_list_element_t *next
65 );
66
67 #include "u8arena/universal_arena_list_element.inl"
68
69 #endif /* UNIVERSAL_ARENA_LIST_ELEMENT_H */
70
71
72 /*
73 Copyright 2021-2026 Andreas Warnke
74
75 Licensed under the Apache License, Version 2.0 (the "License");
76 you may not use this file except in compliance with the License.
77 You may obtain a copy of the License at
78
79 http://www.apache.org/licenses/LICENSE-2.0
80
81 Unless required by applicable law or agreed to in writing, software
82 distributed under the License is distributed on an "AS IS" BASIS,
83 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
84 See the License for the specific language governing permissions and
85 limitations under the License.
86 */