ARTS  2.2.66
m_delete.h
Go to the documentation of this file.
1 /* Copyright (C) 2002-2012 Stefan Buehler <sbuehler@ltu.se>
2 
3  This program is free software; you can redistribute it and/or modify it
4  under the terms of the GNU General Public License as published by the
5  Free Software Foundation; either version 2, or (at your option) any
6  later version.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16  USA. */
17 
29 #ifndef m_delete_h
30 #define m_delete_h
31 
32 #include <map>
33 
34 #include "mystring.h"
35 #include "workspace_ng.h"
36 
37 /* Workspace method: Doxygen documentation will be auto-generated */
38 template<typename T> void
39 Delete(// Workspace reference
40  Workspace& ws,
41  // WS Generic Input:
42  const T& x _U_,
43  // WS Generic Input Names:
44  const String& x_name,
45  const Verbosity&)
46 {
47  ws.del (ws.WsvMap.find (x_name)->second);
48 }
49 
50 
51 #endif // m_ignore_h
This file contains the declaration and partly the implementation of the workspace class...
The implementation for String, the ARTS string class.
Definition: mystring.h:63
static map< String, Index > WsvMap
Definition: workspace_ng.h:67
Workspace class.
Definition: workspace_ng.h:47
#define _U_
Definition: config.h:167
void Delete(Workspace &ws, const T &x, const String &x_name, const Verbosity &)
WORKSPACE METHOD: Delete.
Definition: m_delete.h:39
void del(Index i)
Delete WSV.
Definition: workspace_ng.cc:76
This file contains the definition of String, the ARTS string class.