From 19f9940dc968afae01b54377ee23ec59069c9646 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 27 Jan 2009 23:25:11 +0000 Subject: --- src/maps/shashmap.tmpl | 154 ------------------------------------------------- 1 file changed, 154 deletions(-) delete mode 100644 src/maps/shashmap.tmpl (limited to 'src/maps/shashmap.tmpl') diff --git a/src/maps/shashmap.tmpl b/src/maps/shashmap.tmpl deleted file mode 100644 index 1613049..0000000 --- a/src/maps/shashmap.tmpl +++ /dev/null @@ -1,154 +0,0 @@ -/*:* - *: File: ./src/maps/shashmap.tmpl - *: - *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT - *: - *: Copyright (C) 2003 Paul C. Buetow, Volker Richter - *: Copyright (C) 2004 Paul C. Buetow - *: Copyright (C) 2005 EXA Digital Solutions GbR - *: Copyright (C) 2006, 2007 Paul C. Buetow - *: - *: This program is free software; you can redistribute it and/or - *: modify it under the terms of the GNU General Public License - *: as published by the Free Software Foundation; either version 2 - *: of the License, or (at your option) any later version. - *: - *: This program is distributed in the hope that it will be useful, - *: but WITHOUT ANY WARRANTY; without even the implied warranty of - *: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - *: GNU General Public License for more details. - *: - *: You should have received a copy of the GNU General Public License - *: along with this program; if not, write to the Free Software - *: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - *:*/ - -template -shashmap::shashmap() -{} - -template -shashmap::~shashmap() -{} - -template -void -shashmap::add_elem(obj_type t_obj, key_type_ t_key) -{ - (*this)[t_key] = t_obj; -} - -template -void -shashmap::add_elem_insecure(obj_type t_obj, key_type_ t_key) -{ - (*this)[t_key] = t_obj; -} - -template -obj_type -shashmap::get_set_elem(obj_type t_obj, key_type_ t_key) -{ - obj_type t_ret = hashmap::get_set_elem(t_obj, t_key); - return t_ret; -} - -template -obj_type -shashmap::get_or_callback_set -(obj_type (*func)(void*), void* p_void, key_type_ t_key) -{ - obj_type t_ret = hashmap::get_or_callback_set - (func, p_void, t_key); - return t_ret; -} - -template -void -shashmap::set_elem(obj_type t_obj, key_type_ t_key) -{ - (*this)[t_key] = t_obj; -} - -template -obj_type -shashmap::get_elem(key_type_ t_key) -{ - obj_type t_ret = hashmap::get_elem(t_key); - return t_ret; -} - -template -void -shashmap::del_elem(key_type_ t_key) -{ - hashmap::erase(t_key); -} - -template -void -shashmap::del_elem_insecure(key_type_ t_key) -{ - hashmap::erase(t_key); -} - -template -vector* -shashmap::get_key_vector() -{ - vector* p_vec = hashmap::get_key_vector(); - return p_vec; -} - -template -void -shashmap::clear() -{ - hashmap::clear(); -} - -template -int -shashmap::size() -{ - int i_size = hashmap::size(); - return i_size; -} - -template -bool -shashmap::exists(key_type_ t_key) -{ - bool b_ret = hashmap::exists(t_key); - return b_ret; -} - -template -void -shashmap::run_func( void (*func)(obj_type) ) -{ - hashmap::run_func(func); -} - -template -void -shashmap::run_func( void (*func)(obj_type, void*), void* v_arg ) -{ - hashmap::run_func(func, v_arg); -} - -template -void -shashmap::dumpit() -{ - dumpable::add - ("[shashmap]"); - vector* p_vec = get_key_vector(); - - typename vector::iterator iter; - for (iter = p_vec->begin(); iter != p_vec->end(); ++iter) - dumpable::add - (*iter); - - delete p_vec; -} -- cgit v1.2.3