core/sm_trie.h
author Scott Ehlert <ds@alliedmods.net>
Sun Jul 15 08:00:26 2007 +0000 (2007-07-15)
changeset 1116 40cc5e9f0f1b
parent 1057 de136462a416
child 1231 17badaf66ce4
permissions -rw-r--r--
Removed strange debugging code
     1 /**
     2  * vim: set ts=4 :
     3  * ===============================================================
     4  * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
     5  * ===============================================================
     6  *
     7  * This file is not open source and may not be copied without explicit
     8  * written permission of AlliedModders LLC.  This file may not be redistributed 
     9  * in whole or significant part.
    10  * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
    11  *
    12  * Version: $Id$
    13  */
    14 
    15 #ifndef _INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_
    16 #define _INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_
    17 
    18 struct Trie;
    19 
    20 Trie *sm_trie_create();
    21 void sm_trie_destroy(Trie *trie);
    22 bool sm_trie_insert(Trie *trie, const char *key, void *value);
    23 bool sm_trie_replace(Trie *trie, const char *key, void *value);
    24 bool sm_trie_retrieve(Trie *trie, const char *key, void **value);
    25 bool sm_trie_delete(Trie *trie, const char *key);
    26 void sm_trie_clear(Trie *trie);
    27 
    28 #endif //_INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_