#include <gslists.hpp>
Membres publics | |
g_slist () | |
Default constructor. | |
g_slist (GSList *aList) | |
~g_slist () | |
Destructor. | |
operator GSList * () | |
Convert a g_slist to GSList*. | |
self & | Append (gpointer d) |
Add a new item at end of the list. | |
self & | Prepend (gpointer d) |
Add a new item a begining of the list. | |
self & | Insert (gpointer d, list_index p) |
Insert an item in the list. | |
self & | Remove (gpointer d) |
Remove an item in the list. | |
void * | First () |
Return the first item in the list. | |
void * | Last () |
Return the last item in the list. | |
void * | Next () |
Return the next item in the list. The result is memorized. | |
void * | Nth (list_index p) |
Return an item in the list. | |
void * | Find (void *p) |
Recherche un element de donnee dans la liste. | |
size_t | Length () |
Return the length of the list. | |
self & | Concat (g_slist &sl) |
Concat a list to this list. | |
self & | Free () |
Free all items in the list. |
If the macro USE_TEMPLATE is defined, the class is defined as template.
If the macro USE_ITERATOR is defined, an unidirectionnel iterator is added to the class, USE_TEMPLATE is defined too, and interface similar to the 'slist' class of the stl is added : begin, end, empty, size (other will arrive later) Iterator has defined the operator ==, != and ++.
|
Default constructor.
|
|
Conversion constructor. The GSList is adopted by the class Construit un g_slist a partir d'un GSList* l'objet est adopté. Il ne doit donc pas pas etre partagé par plus d'un instance.
|
|
Destructor.
|
|
Add a new item at end of the list.
|
|
Concat a list to this list.
|
|
Recherche un element de donnee dans la liste.
|
|
Return the first item in the list.
|
|
Free all items in the list.
|
|
Insert an item in the list.
|
|
Return the last item in the list.
|
|
Return the length of the list.
|
|
Return the next item in the list. The result is memorized.
|
|
Return an item in the list.
|
|
Convert a g_slist to GSList*.
|
|
Add a new item a begining of the list.
|
|
Remove an item in the list.
|