set.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2013- The University of Notre Dame
00003 This software is distributed under the GNU General Public License.
00004 See the file COPYING for details.
00005 */
00006 
00007 #ifndef SET_H
00008 #define SET_H
00009 
00010 #include "int_sizes.h"
00011 
00048 struct set *set_create(int buckets);
00049 
00055 void set_clear(struct set *s);
00056 
00062 void set_delete(struct set *s);
00063 
00069 int set_size(struct set *s);
00070 
00080 int set_insert(struct set *s, const void *element);
00081 
00086 int set_push(struct set *h, const void *element);
00087 
00094 int set_lookup(struct set *s, void *element);
00095 
00102 int set_remove(struct set *s, const void *element);
00103 
00108 void *set_pop(struct set *s);
00109 
00117 void set_first_element(struct set *s);
00118 
00125 void *set_next_element(struct set *s);
00126 
00127 #endif

Generated on 11 Dec 2014 for cctools by  doxygen 1.4.7