00001 /* Copyright (C) 2002-2008 Stefan Buehler <sbuehler@ltu.se> 00002 00003 This program is free software; you can redistribute it and/or modify it 00004 under the terms of the GNU General Public License as published by the 00005 Free Software Foundation; either version 2, or (at your option) any 00006 later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 00016 USA. */ 00017 00029 #ifndef m_delete_h 00030 #define m_delete_h 00031 00032 #include <map> 00033 00034 #include "mystring.h" 00035 #include "workspace_ng.h" 00036 00037 /* Workspace method: Doxygen documentation will be auto-generated */ 00038 template<typename T> void 00039 Delete(// Workspace reference 00040 Workspace& ws, 00041 // WS Generic Input: 00042 const T& x _U_, 00043 // WS Generic Input Names: 00044 const String& x_name ) 00045 { 00046 ws.del (ws.WsvMap.find (x_name)->second); 00047 } 00048 00049 00050 #endif // m_ignore_h