ROOT  6.05/03
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gslist.h
Go to the documentation of this file.
1 /* GLIB - Library of useful routines for C programming
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 
20 /*
21  * Modified by the GLib Team and others 1997-2000. See the AUTHORS
22  * file for a list of people on the GLib Team. See the ChangeLog
23  * files for a list of changes. These files are distributed with
24  * GLib at ftp://ftp.gtk.org/pub/gtk/.
25  */
26 
27 #ifndef __G_SLIST_H__
28 #define __G_SLIST_H__
29 
30 #include <glib/gmem.h>
31 
33 
34 typedef struct _GSList GSList;
35 
36 struct _GSList
37 {
40 };
41 
42 /* Singly linked lists
43  */
44 void g_slist_push_allocator (GAllocator *allocator);
45 void g_slist_pop_allocator (void);
46 GSList* g_slist_alloc (void);
47 void g_slist_free (GSList *list);
48 void g_slist_free_1 (GSList *list);
50  gpointer data);
52  gpointer data);
54  gpointer data,
55  gint position);
57  gpointer data,
60  GSList *sibling,
61  gpointer data);
63  GSList *list2);
69  GSList *link);
71  GSList *link);
73 GSList* g_slist_copy (GSList *list);
74 GSList* g_slist_nth (GSList *list,
75  guint n);
76 GSList* g_slist_find (GSList *list,
82  GSList *llink);
85 GSList* g_slist_last (GSList *list);
87 void g_slist_foreach (GSList *list,
88  GFunc func,
89  gpointer user_data);
90 GSList* g_slist_sort (GSList *list,
91  GCompareFunc compare_func);
93  GCompareDataFunc compare_func,
94  gpointer user_data);
96  guint n);
97 #define g_slist_next(slist) ((slist) ? (((GSList *)(slist))->next) : NULL)
98 
100 
101 #endif /* __G_SLIST_H__ */
102 
GSList * g_slist_alloc(void)
Definition: gslist.c:149
GSList * g_slist_nth(GSList *list, guint n)
Definition: gslist.c:511
GSList * next
Definition: gslist.h:39
unsigned int guint
Definition: g_types.h:51
GSList * g_slist_find_custom(GSList *list, gconstpointer data, GCompareFunc func)
Definition: gslist.c:545
void g_slist_free(GSList *list)
Definition: gslist.c:155
void g_slist_foreach(GSList *list, GFunc func, gpointer user_data)
Definition: gslist.c:625
gpointer g_slist_nth_data(GSList *list, guint n)
Definition: gslist.c:521
void g_slist_pop_allocator(void)
Definition: gslist.c:93
GSList * g_slist_insert_before(GSList *slist, GSList *sibling, gpointer data)
Definition: gslist.c:311
void g_slist_push_allocator(GAllocator *allocator)
Definition: gslist.c:83
#define G_END_DECLS
Definition: gmacros.h:109
gpointer data
Definition: gslist.h:38
Definition: gslist.h:36
const void * gconstpointer
Definition: g_types.h:68
GSList * g_slist_copy(GSList *list)
Definition: gslist.c:468
ClassImp(RooList) TObjOptLink *RooList TObjLink * link
Find the link corresponding to the named object in this list.
Definition: RooList.cxx:48
GSList * g_slist_sort_with_data(GSList *list, GCompareDataFunc compare_func, gpointer user_data)
Definition: gslist.c:762
gint(* GCompareFunc)(gconstpointer a, gconstpointer b)
Definition: g_types.h:70
GSList * g_slist_delete_link(GSList *list, GSList *link)
Definition: gslist.c:458
GSList * g_slist_last(GSList *list)
Definition: gslist.c:598
typedefG_BEGIN_DECLS struct _GSList GSList
Definition: gslist.h:34
int gint
Definition: g_types.h:44
guint g_slist_length(GSList *list)
Definition: gslist.c:610
#define G_BEGIN_DECLS
Definition: gmacros.h:108
GSList * g_slist_remove_link(GSList *list, GSList *link)
Definition: gslist.c:451
void * gpointer
Definition: g_types.h:67
gint g_slist_index(GSList *list, gconstpointer data)
Definition: gslist.c:580
GSList * g_slist_insert(GSList *list, gpointer data, gint position)
Definition: gslist.c:268
gchar data[7]
GSList * g_slist_prepend(GSList *list, gpointer data)
Definition: gslist.c:255
GSList * g_slist_insert_sorted(GSList *list, gpointer data, GCompareFunc func)
Definition: gslist.c:638
double func(double *x, double *p)
Definition: stressTF1.cxx:213
void(* GFunc)(gpointer data, gpointer user_data)
Definition: g_types.h:78
void g_slist_free_1(GSList *list)
Definition: gslist.c:193
GSList * g_slist_reverse(GSList *list)
Definition: gslist.c:493
typedefG_BEGIN_DECLS struct _GAllocator GAllocator
Definition: gmem.h:34
GSList * g_slist_sort(GSList *list, GCompareFunc compare_func)
Definition: gslist.c:755
GSList * g_slist_find(GSList *list, gconstpointer data)
Definition: gslist.c:531
GSList * g_slist_remove_all(GSList *list, gconstpointer data)
Definition: gslist.c:390
GSList * g_slist_append(GSList *list, gpointer data)
Definition: gslist.c:233
GSList * g_slist_remove(GSList *list, gconstpointer data)
Definition: gslist.c:364
const Int_t n
Definition: legend1.C:16
GSList * g_slist_concat(GSList *list1, GSList *list2)
Definition: gslist.c:350
gint(* GCompareDataFunc)(gconstpointer a, gconstpointer b, gpointer user_data)
Definition: gtypes.h:71
gint g_slist_position(GSList *list, GSList *llink)
Definition: gslist.c:562