ffd308f42c
Added a "clear" function for Tries --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40340
14 lines
425 B
C
14 lines
425 B
C
#ifndef _INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_
|
|
#define _INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_
|
|
|
|
struct Trie;
|
|
|
|
Trie *sm_trie_create();
|
|
void sm_trie_destroy(Trie *trie);
|
|
bool sm_trie_insert(Trie *trie, const char *key, void *value);
|
|
bool sm_trie_retrieve(Trie *trie, const char *key, void **value);
|
|
bool sm_trie_delete(Trie *trie, const char *key);
|
|
void sm_trie_clear(Trie *trie);
|
|
|
|
#endif //_INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_
|