X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fadt%2Fcpset.h;h=b13fea0cc6c4fb4fd4245ef9cb86093f06d2bcb4;hb=332cda9a138297c9852e2ef0f649c92b640723f4;hp=856e32e7e7119cf0f00bbb677c42a71d872ad525;hpb=f8cc15664f571aa7ef89d6f6bc8d5bd2b8ca7d53;p=libfirm diff --git a/include/libfirm/adt/cpset.h b/include/libfirm/adt/cpset.h index 856e32e7e..b13fea0cc 100644 --- a/include/libfirm/adt/cpset.h +++ b/include/libfirm/adt/cpset.h @@ -28,6 +28,13 @@ #include "../begin.h" +/** + * @ingroup adt + * @defgroup Pointer Set (custom Compare) + * A pointer set with user-definable compare function + * @{ + */ + /** * The type of a cpset compare function. * @@ -43,6 +50,8 @@ typedef int (*cpset_cmp_function) (const void *p1, const void *p2); */ typedef unsigned (*cpset_hash_function) (const void *obj); +/** @cond PRIVATE */ + #define HashSet cpset_t #define HashSetIterator cpset_iterator_t #define HashSetEntry cpset_hashset_entry_t @@ -55,7 +64,12 @@ typedef unsigned (*cpset_hash_function) (const void *obj); #undef HashSetIterator #undef HashSet +/** @endcond */ + +/** a pointer set with custom compare function */ typedef struct cpset_t cpset_t; +/** iterator over a pointer set with custom compare function + * @see #cpset_t */ typedef struct cpset_iterator_t cpset_iterator_t; /** @@ -151,6 +165,8 @@ FIRM_API void *cpset_iterator_next(cpset_iterator_t *iterator); */ FIRM_API void cpset_remove_iterator(cpset_t *cpset, const cpset_iterator_t *iterator); +/** @} */ + #include "../end.h" #endif