00001 /************************************************************************* 00002 This file is part of MESH. 00003 00004 MESH is free software: you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation, either version 3 of the License, or 00007 (at your option) any later version. 00008 00009 MESH is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with MESH. If not, see <http://www.gnu.org/licenses/>. 00016 **************************************************************************/ 00017 #ifndef __G_PRIQ_H__ 00018 #define __G_PRIQ_H__ 00019 00020 #include <glib.h> 00021 //#include <glib/gtypes.h> 00022 //#include <glib/gtree.h> 00023 00024 //G_BEGIN_DECLS 00025 00026 typedef struct _GPriq GPriq; 00027 00028 GPriq *g_priq_new (GCompareFunc key_compare_func); 00029 00030 /* 00031 GPriq *g_priq_new_with_data (GCompareDataFunc key_compare_func, 00032 gpointer key_compare_data); 00033 */ 00034 00035 /* 00036 GPriq *g_priq_new_full (GCompareDataFunc key_compare_func, 00037 gpointer key_compare_data, 00038 GDestroyNotify key_destroy_func, 00039 GDestroyNotify data_destroy_func); 00040 */ 00041 00042 gint g_priq_nnodes (GPriq * priq); 00043 00044 void g_priq_destroy (GPriq * priq); 00045 00046 void g_priq_insert (GPriq * priq, 00047 gpointer key, 00048 gpointer value); 00049 00050 gpointer g_priq_minimum (GPriq * priq); 00051 00052 void g_priq_minimum_extended (GPriq * priq, 00053 gpointer * key, 00054 gpointer * value); 00055 00056 gpointer g_priq_remove (GPriq * priq); 00057 00058 void g_priq_remove_extended (GPriq * priq, 00059 gpointer * key, 00060 gpointer * value); 00061 00062 void g_priq_foreach (GPriq * priq, 00063 gboolean inorder, 00064 GTraverseFunc traverse_func, 00065 gpointer user_data); 00066 00067 00068 //G_END_DECLS 00069 00070 #endif /* __G_PRIQ_H__ */
1.7.1