- moved remove-method to iterator

This commit is contained in:
Martin Willi
2005-11-24 12:06:23 +00:00
parent 4ed9966524
commit 12c3e4c860
5 changed files with 80 additions and 80 deletions
+13 -14
View File
@@ -75,6 +75,19 @@ struct linked_list_iterator_t {
*/
status_t (*insert_after) (linked_list_iterator_t *this, void *item);
/**
* @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
* - otherwise to the item after, if available
* - otherwise it gets reseted
*
* @param linked_list calling object
* @param iterator iterator holding the position of the element to remove
* @return SUCCESS if succeeded, FAILED otherwise
*/
status_t (*remove) (linked_list_iterator_t *iterator);
/**
* @brief Resets a linked_list_iterator object
*
@@ -135,20 +148,6 @@ struct linked_list_t {
*/
status_t (*insert_first) (linked_list_t *linked_list, void *item);
/**
* @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
* - otherwise to the item after, if available
* - otherwise it gets reseted
*
* @param linked_list calling object
* @param iterator iterator holding the position of the element to remove
* @return SUCCESS if succeeded, FAILED otherwise
*/
status_t (*remove) (linked_list_t *linked_list, linked_list_iterator_t *iterator);
/**
* @brief removes the first item in the list and returns its value
*