diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-25 08:36:26 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-25 08:36:26 +0000 |
commit | caf2a93a5ca1deb7d6e2efcefda98172f09d4576 (patch) | |
tree | eaf9e448641ba1a61857c368b634e647d8dc1025 /Source/charon/utils/iterator.h | |
parent | 2b4ec18f48b5f1d5c3310d22ff50424ebdfbcb68 (diff) | |
download | strongswan-caf2a93a5ca1deb7d6e2efcefda98172f09d4576.tar.bz2 strongswan-caf2a93a5ca1deb7d6e2efcefda98172f09d4576.tar.xz |
- code documentation cleaned
Diffstat (limited to 'Source/charon/utils/iterator.h')
-rw-r--r-- | Source/charon/utils/iterator.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/Source/charon/utils/iterator.h b/Source/charon/utils/iterator.h index 17deb630c..8a2a3c348 100644 --- a/Source/charon/utils/iterator.h +++ b/Source/charon/utils/iterator.h @@ -31,11 +31,12 @@ typedef struct iterator_t iterator_t; * iterator_t defines an interface for iterating over collections. * It allows searching, deleting, updating and inserting. * + * @ingroup utils */ struct iterator_t { /** - * @brief Moves to the next element, if available. + * Moves to the next element, if available. * * @param this calling object * @return @@ -45,39 +46,39 @@ struct iterator_t { bool (*has_next) (iterator_t *this); /** - * @brief Returns the current value at the iterator position. + * Returns the current value at the iterator position. * * @param this calling object * @param [out]value value is set to the current value at iterator position * @return - * - SUCCESS, or - * - FAILED if iterator is on an invalid state + * - SUCCESS + * - FAILED if list is empty */ status_t (*current) (iterator_t *this, void **value); /** - * @brief Inserts a new item before the given iterator position. + * Inserts a new item before the given iterator position. * * The iterator position is not changed after inserting * * @param this calling iterator * @param [in]item value to insert in list * @return - * - SUCCESS if succeeded, - * - FAILED otherwise + * - SUCCESS + * - FAILED */ status_t (*insert_before) (iterator_t *this, void *item); /** - * @brief Inserts a new item after the given iterator position. + * Inserts a new item after the given iterator position. * * The iterator position is not changed after inserting. * * @param this calling iterator * @param [in]item value to insert in list * @return - * - SUCCESS if succeeded, - * - FAILED otherwise + * - SUCCESS + * - FAILED */ status_t (*insert_after) (iterator_t *this, void *item); @@ -91,8 +92,8 @@ struct iterator_t { * * @param linked_list calling object * @return - * - SUCCESS if succeeded, - * - FAILED otherwise + * - SUCCESS + * - FAILED */ status_t (*remove) (iterator_t *iterator); @@ -104,9 +105,7 @@ struct iterator_t { * with the resetted iterator. * * @param this calling object - * @return - * - SUCCESS if succeeded, - * - FAILED otherwise + * @return SUCCESS in any case */ status_t (*reset) (iterator_t *this); @@ -114,9 +113,8 @@ struct iterator_t { * @brief Destroys an iterator. * * @param this iterator to destroy - * @return - * - SUCCESS if succeeded, - * - FAILED otherwise + * @return SUCCESS in any case + * */ status_t (*destroy) (iterator_t *this); }; |