Modules | |
| The Set Interface | |
Typedefs | |
| typedef Cmaid_Container | Cmaid_Set |
| Type definition of the Set Class. | |
Functions | |
| CMAID_INLINE void * | cmaid_set_add (Cmaid_Set *s, void *data) |
| Adds an item to the set. | |
| CMAID_INLINE void | cmaid_set_remove (Cmaid_Set *s, const void *data) |
| Removes the given item from the set. | |
| CMAID_INLINE void * | cmaid_set_get (Cmaid_Set *s, const void *data) |
XXX TBD
| CMAID_INLINE void* cmaid_set_add | ( | Cmaid_Set * | s, | |
| void * | data | |||
| ) |
Adds an item to the set.
| s | the set to add an item | |
| data; | the data to add |
data. If there is already an item equal to the given data, no item is added. No matter if there was added a new item or not, the address returned points to the item which is now or has been in the set. If the container allocates the data for you, the pointer to the allocated address will be returned, | CMAID_INLINE void* cmaid_set_get | ( | Cmaid_Set * | s, | |
| const void * | data | |||
| ) |
| s | the set to find the item | |
| data | the item to be find |
NULL | CMAID_INLINE void cmaid_set_remove | ( | Cmaid_Set * | s, | |
| const void * | data | |||
| ) |
Removes the given item from the set.
| s | the set to remove the item | |
| data | the item to remove |
1.5.8