core/sm_trie.h
author David Anderson <dvander@alliedmods.net>
Fri Mar 02 08:34:13 2007 +0000 (2007-03-02)
changeset 558 fc0eec032efb
parent 370 d3a484f98f6d
child 653 ef60870067ff
permissions -rw-r--r--
added state change function
     1 /**
     2  * ===============================================================
     3  * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
     4  * ===============================================================
     5  *
     6  * This file is not open source and may not be copied without explicit
     7  * written permission of AlliedModders LLC.  This file may not be redistributed 
     8  * in whole or significant part.
     9  * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
    10  *
    11  * Version: $Id$
    12  */
    13 
    14 #ifndef _INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_
    15 #define _INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_
    16 
    17 struct Trie;
    18 
    19 Trie *sm_trie_create();
    20 void sm_trie_destroy(Trie *trie);
    21 bool sm_trie_insert(Trie *trie, const char *key, void *value);
    22 bool sm_trie_retrieve(Trie *trie, const char *key, void **value);
    23 bool sm_trie_delete(Trie *trie, const char *key);
    24 void sm_trie_clear(Trie *trie);
    25 
    26 #endif //_INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_