poser
A C framework for POsix SERvices
Loading...
Searching...
No Matches
PSC_ListIterator Class Reference

An iterator over the contents of a PSC_List. More...

#include <poser/core/list.h>

Public Member Functions

int PSC_ListIterator_moveNext (PSC_ListIterator *self)
 Move to the next position.
 
void * PSC_ListIterator_current (const PSC_ListIterator *self)
 Gets the object at the current position.
 
void PSC_ListIterator_destroy (PSC_ListIterator *self)
 PSC_ListIterator destructor.
 

Detailed Description

An iterator over the contents of a PSC_List.

Member Function Documentation

◆ PSC_ListIterator_current()

void * PSC_ListIterator_current ( const PSC_ListIterator self)

Gets the object at the current position.

Parameters
selfthe PSC_ListIterator
Returns
the current object, or NULL for the invalid position

◆ PSC_ListIterator_destroy()

void PSC_ListIterator_destroy ( PSC_ListIterator self)

PSC_ListIterator destructor.

Parameters
selfthe PSC_ListIterator

◆ PSC_ListIterator_moveNext()

int PSC_ListIterator_moveNext ( PSC_ListIterator self)

Move to the next position.

If the position was invalid, move to the first position. If the position was pointing to the last entry, move to invalid position.

Parameters
selfthe PSC_ListIterator
Returns
1 if the new position is a valid one, 0 otherwise

The documentation for this class was generated from the following file: