JULEA
Data Structures | Typedefs | Functions
List Iterator

Data Structures

struct  JListIterator
 

Typedefs

typedef struct JListIterator JListIterator
 

Functions

G_END_DECLS G_BEGIN_DECLS JListIteratorj_list_iterator_new (JList *list)
 
void j_list_iterator_free (JListIterator *iterator)
 
gboolean j_list_iterator_next (JListIterator *iterator)
 
gpointer j_list_iterator_get (JListIterator *iterator)
 

Detailed Description

Typedef Documentation

◆ JListIterator

typedef struct JListIterator JListIterator

Function Documentation

◆ j_list_iterator_free()

void j_list_iterator_free ( JListIterator iterator)

Frees the memory allocated by a list iterator.

Parameters
iteratorA list iterator.

◆ j_list_iterator_get()

gpointer j_list_iterator_get ( JListIterator iterator)

Returns the current list element.

Parameters
iteratorA list iterator.
Returns
A list element.

◆ j_list_iterator_new()

JListIterator * j_list_iterator_new ( JList list)

Creates a new list iterator.

Parameters
listA list.
Returns
A new list iterator.

◆ j_list_iterator_next()

gboolean j_list_iterator_next ( JListIterator iterator)

Checks whether another list element is available.

Parameters
iteratorA list iterator.
Returns
TRUE on success, FALSE if the end of the list is reached.