23 new_iterator->
list = list;
25 new_iterator->
index = 0;
size_t get_list_size(List *list)
Gets the size of the List.
The declaration of the functions to manipulate the List.
void list_iterator_next(ListIterator *iterator)
Used to move the ListIterator to the next value of the object.
void * get_current_list_iterator_element(ListIterator *iterator)
Method used to get the current DllElem of an ListIterator.
void * list_iterator_get_next(ListIterator *iterator)
Method that retrieves the current DllElem of an ListIterator and moves the pointer to the next object...
bool is_list_iterator_valid(ListIterator *iterator)
Used to check if the ListIterator is valid.
ListIterator * create_list_iterator(List *list)
Used for the creation of a new ListIterator.
void delete_list_iterator(ListIterator *iterator)
Delete the ListIterator given.
void * value
The value of the element, void pointer to be able to store any type of data.
struct DllElem * next
The next element in the List.
The iterator for the List.
DllElem * curr
The current DllElem (element) of the List.
List * list
The List to iterate.
size_t index
The current index of the element in the List.
DllElem * head
The head of the list as a DllElem.