Cthulhu  0.2.10
Cthulhu compiler collection
set.h File Reference
#include <ctu_std_api.h>
#include "core/analyze.h"
#include "std/typeinfo.h"
Include dependency graph for set.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  set_iter_t
 a set iterator handle More...
 

Typedefs

typedef typedefCT_BEGIN_API struct arena_t arena_t
 

Functions

CT_NODISCARD CT_STD_API set_tset_new (size_t size, hash_info_t info, arena_t *arena)
 create a new set More...
 
CT_STD_API const void * set_add (set_t *set, const void *key)
 add a key to a set More...
 
CT_NODISCARD CT_PUREFN CT_STD_API bool set_contains (const set_t *set, const void *key)
 check if a set contains a key More...
 
CT_STD_API void set_delete (set_t *set, const void *key)
 remove a key from a set More...
 
CT_NODISCARD CT_PUREFN CT_STD_API bool set_empty (set_t *set)
 check if a set is empty More...
 
CT_STD_API void set_reset (set_t *set)
 clear all keys from a set More...
 
CT_NODISCARD CT_PUREFN CT_STD_API set_iter_t set_iter (set_t *set)
 acquire a set iterator for a set More...
 
CT_NODISCARD CT_STD_API const void * set_next (set_iter_t *iter)
 get the next item from a set iterator More...
 
CT_NODISCARD CT_PUREFN CT_STD_API bool set_has_next (set_iter_t *iter)
 check if a set iterator has more items More...
 

Typedef Documentation

◆ arena_t

typedef typedefCT_BEGIN_API struct arena_t arena_t

Definition at line 11 of file set.h.