ucx
UAP Common Extensions
|
Common definitions for various collection implementations. More...
Go to the source code of this file.
Macros | |
#define | CX_STORE_POINTERS 0 |
Special constant used for creating collections that are storing pointers. | |
#define | CX_COLLECTION_MEMBERS |
Use this macro to declare common members for a collection structure. | |
#define | cx_invoke_simple_destructor(c, e) (c)->simple_destructor((c)->store_pointer ? (*((void **) (e))) : (e)) |
Invokes the simple destructor function for a specific element. | |
#define | cx_invoke_advanced_destructor(c, e) |
Invokes the advanced destructor function for a specific element. | |
#define | cx_invoke_destructor(c, e) |
Invokes all available destructor functions for a specific element. | |
Typedefs | |
typedef int(* | cx_compare_func) (void const *left, void const *right) |
A comparator function comparing two collection elements. | |
Common definitions for various collection implementations.
#define cx_invoke_advanced_destructor | ( | c, | |
e | |||
) |
Invokes the advanced destructor function for a specific element.
Usually only used by collection implementations. There should be no need to invoke this macro manually.
c | the collection |
e | the element |
#define cx_invoke_destructor | ( | c, | |
e | |||
) |
Invokes all available destructor functions for a specific element.
Usually only used by collection implementations. There should be no need to invoke this macro manually.
c | the collection |
e | the element |
#define cx_invoke_simple_destructor | ( | c, | |
e | |||
) | (c)->simple_destructor((c)->store_pointer ? (*((void **) (e))) : (e)) |
Invokes the simple destructor function for a specific element.
Usually only used by collection implementations. There should be no need to invoke this macro manually.
c | the collection |
e | the element |