diff options
author | Martin Willi <martin@strongswan.org> | 2005-12-05 16:30:53 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-12-05 16:30:53 +0000 |
commit | f673471b10622a5b9f0d9d0fa66cfc951541b91d (patch) | |
tree | 51d15336ea1777c3f9b4192999953a5f44f8cffa /Source/charon/utils/iterator.h | |
parent | ba425b87dd0aee3f03df39a5f778f8cec0f3ec7a (diff) | |
download | strongswan-f673471b10622a5b9f0d9d0fa66cfc951541b91d.tar.bz2 strongswan-f673471b10622a5b9f0d9d0fa66cfc951541b91d.tar.xz |
- some doc updates
Diffstat (limited to 'Source/charon/utils/iterator.h')
-rw-r--r-- | Source/charon/utils/iterator.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Source/charon/utils/iterator.h b/Source/charon/utils/iterator.h index f0e66a093..55d1c5de8 100644 --- a/Source/charon/utils/iterator.h +++ b/Source/charon/utils/iterator.h @@ -31,12 +31,21 @@ typedef struct iterator_t iterator_t; * iterator_t defines an interface for iterating over collections. * It allows searching, deleting, updating and inserting. * + * @b Constructors: + * - via linked_list_t.create_iterator, or + * - any other class which supports this interface + * + * @see linked_list_t + * * @ingroup utils */ struct iterator_t { /** - * Moves to the next element, if available. + * @brief Moves to the next element, if available. + * + * A newly created iterator doesn't point to any item, + * call has_next first to point it to the first item. * * @param this calling object * @return @@ -46,7 +55,7 @@ struct iterator_t { bool (*has_next) (iterator_t *this); /** - * Returns the current value at the iterator position. + * @brief 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 @@ -57,7 +66,7 @@ struct iterator_t { status_t (*current) (iterator_t *this, void **value); /** - * Inserts a new item before the given iterator position. + * @biref Inserts a new item before the given iterator position. * * The iterator position is not changed after inserting * @@ -92,7 +101,7 @@ struct iterator_t { status_t (*replace) (iterator_t *this, void **old_item, void *new_item); /** - * @brief removes an element from list at the given iterator position. + * @brief Removes an element from list at the given iterator position. * * The position of the iterator is set in the following order: * - to the item before, if available |