Page principale   Modules   Liste des namespaces   Hiérarchie des classes   Liste des composants   Liste des fichiers   Membres des namespaces   Composants   Déclarations   Pages associées   Exemples  

Référence de la classe lgtkpp::g_slist
[glib++]

#include <gslists.hpp>

Liste de tous les membres

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.


Description détaillée

The g_slist class is a C++ interface for the GSList struct of gtk+. This class define all functions of the gtk+ for the manipulation of the GSList: Append, Concat, First, Insert, Last, Length, Nth, Prepend, Remove (other will arrive later). The classe define the operator += to concatenate 2 slist.

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 ++.

À Faire:
classe totalement fausse !!! La revoir de zero.


Documentation des contructeurs et destructeurs

lgtkpp::g_slist::g_slist   [inline]
 

Default constructor.

lgtkpp::g_slist::g_slist GSList *    aList [inline]
 

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.

Paramètres:
gslist pointeur sur le gslist a adopter

lgtkpp::g_slist::~g_slist   [inline]
 

Destructor.


Documentation des méthodes

self& lgtkpp::g_slist::Append gpointer    d [inline]
 

Add a new item at end of the list.

self& lgtkpp::g_slist::Concat g_slist &    sl [inline]
 

Concat a list to this list.

void* lgtkpp::g_slist::Find void *    p [inline]
 

Recherche un element de donnee dans la liste.

void* lgtkpp::g_slist::First   [inline]
 

Return the first item in the list.

self& lgtkpp::g_slist::Free   [inline]
 

Free all items in the list.

self& lgtkpp::g_slist::Insert gpointer    d,
list_index    p
[inline]
 

Insert an item in the list.

void* lgtkpp::g_slist::Last   [inline]
 

Return the last item in the list.

size_t lgtkpp::g_slist::Length   [inline]
 

Return the length of the list.

void* lgtkpp::g_slist::Next   [inline]
 

Return the next item in the list. The result is memorized.

void* lgtkpp::g_slist::Nth list_index    p [inline]
 

Return an item in the list.

lgtkpp::g_slist::operator GSList *   [inline]
 

Convert a g_slist to GSList*.

self& lgtkpp::g_slist::Prepend gpointer    d [inline]
 

Add a new item a begining of the list.

self& lgtkpp::g_slist::Remove gpointer    d [inline]
 

Remove an item in the list.


La documentation associée à cette classe a été générée à partir du fichier suivant :
Généré le Sun Oct 5 15:03:44 2003 pour lightgtk++ par doxygen1.3-rc3