|
ucx
UAP Common Extensions
|
Base attributes of a collection. More...
#include <collection.h>
Data Fields | |
| const CxAllocator * | allocator |
| The allocator to use. | |
| size_t | elem_size |
| The size of each element. | |
| size_t | size |
| The number of currently stored elements. | |
| cx_compare_func | simple_cmp |
| A two-argument comparator function for the elements. | |
| cx_compare_func2 | advanced_cmp |
| A three-argument comparator function for the elements. | |
| void * | cmp_data |
A pointer to custom data for the advanced_cmp function. | |
| cx_destructor_func | simple_destructor |
| An optional simple destructor for the collection's elements. | |
| cx_destructor_func2 | advanced_destructor |
| An optional advanced destructor for the collection's elements. | |
| void * | destructor_data |
| The pointer to additional data that is passed to the advanced destructor. | |
| bool | store_pointer |
| Indicates if this list is supposed to store pointers instead of copies of the actual objects. | |
| bool | sorted |
| Indicates if this collection is guaranteed to be sorted. | |
Base attributes of a collection.
| cx_compare_func2 cx_collection_s::advanced_cmp |
A three-argument comparator function for the elements.
If specified, this function has precedence over the simple_cmp function.
| cx_destructor_func2 cx_collection_s::advanced_destructor |
An optional advanced destructor for the collection's elements.
| cx_destructor_func cx_collection_s::simple_destructor |
An optional simple destructor for the collection's elements.
| bool cx_collection_s::sorted |
Indicates if this collection is guaranteed to be sorted.
Note that the elements can still be sorted, even when the collection is not aware of that.