22 #ifndef __CCL_POSET_H__
23 # define __CCL_POSET_H__
29 typedef struct ccl_poset_st ccl_poset;
36 ccl_poset_add_reference (ccl_poset *poset);
39 ccl_poset_del_reference (ccl_poset *poset);
42 ccl_poset_get_set_size (ccl_poset *poset);
45 ccl_poset_add (ccl_poset *poset,
void *ev);
48 ccl_poset_has (ccl_poset *poset,
void *ev);
51 ccl_poset_has_path (ccl_poset *poset,
void *ev1,
void *ev2);
54 ccl_poset_get_object (ccl_poset *poset,
void *obj);
57 ccl_poset_add_pair (ccl_poset *poset,
void *greater,
void *least);
60 ccl_poset_add_poset (ccl_poset *poset, ccl_poset *other);
63 ccl_poset_add_lt (ccl_poset *poset, ccl_poset *poset1, ccl_poset *poset2);
66 ccl_poset_reverse (ccl_poset *poset);
69 ccl_poset_get_greater_objects (ccl_poset *poset,
void *ev);
71 extern ccl_pointer_iterator *
72 ccl_poset_get_objects (ccl_poset *poset);
75 ccl_poset_get_top_to_down_objects (ccl_poset *poset);
78 ccl_poset_get_down_to_top_objects (ccl_poset *poset);
81 ccl_poset_is_empty (ccl_poset *poset);
85 void (*logproc)(
ccl_log_type log,
void *obj,
void *data),
89 ccl_poset_log_as_dot (
ccl_log_type log, ccl_poset *poset,
90 void (*logproc)(
ccl_log_type log,
void *obj,
void *data),
95 ccl_poset_dup (ccl_poset *poset);
Generic simple linked list.
int ccl_compare_func(const void *ptr1, const void *ptr2)
Prototype of functions used to order two objects pointed respectively by ptr1 and ptr2...
struct ccl_list_st ccl_list
Type of a generic list.
void ccl_delete_proc(void *ptr)
Prototype of procedures used to release the resources allocated to the object pointed by ptr...
void * ccl_duplicate_func(void *ptr)
Prototype of functions used to duplicate an object pointed by ptr.
enum ccl_log_type_enum ccl_log_type
Enum that indicates which kind of message has to be displayed. Each kind of message can be displayed ...