1 #ifndef CGPERF_BOOL_ARRAY_H
2 #define CGPERF_BOOL_ARRAY_H
4 /*------------------------------------------------------------------------------------------------*/
5 #include "namespace/bool-array.h"
6 /*------------------------------------------------------------------------------------------------*/
7 /*{{{ constants and types */
13 * Current iteration number. Always nonzero. Starts out as 1, and is
14 * incremented each time clear() is called.
18 * for each index, we store in storage_array[index] the
19 * iteration_number at the time set_bit(index) was last called
22 /*}}} private -- END */
24 /*}}} constants and types -- END */
25 /*{{{ public static methods */
26 static struct Bool_Array
*ba_new(u32 size
);
27 static void ba_del(struct Bool_Array
*t
);
28 static void ba_clear(struct Bool_Array
*t
);
29 static bool ba_set_bit(struct Bool_Array
*t
, u32 index
);
30 /*}}} public static methods -- END */
31 /*------------------------------------------------------------------------------------------------*/
33 #include "namespace/bool-array.h"
35 /*------------------------------------------------------------------------------------------------*/